Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed secondary_menu.py : 'odict_values' object does not support indexing #225

Merged
merged 11 commits into from Feb 19, 2017
8 changes: 6 additions & 2 deletions .travis.yml
@@ -1,9 +1,10 @@
language: python

python:
- 2.7
- 3.4
- 3.5
- 3.6

env:
matrix:
Expand All @@ -18,7 +19,10 @@ before_script:
- sh -e /etc/init.d/xvfb start
- "if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then export PYVER=py27; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.4' ]]; then export PYVER=py34; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then export PYVER=py35; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then export PYVER=py35; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then export PYVER=py36; fi"



script:
- tox -e"$PYVER-$DJANGO-$CMS"
2 changes: 1 addition & 1 deletion cmsplugin_cascade/bootstrap3/secondary_menu.py
Expand Up @@ -39,7 +39,7 @@ def get_form(self, request, obj=None, **kwargs):
for page in Page.objects.filter(reverse_id__isnull=False).order_by('publisher_is_draft'):
if page.reverse_id not in choices:
choices[page.reverse_id] = page.get_title(lang)
self.glossary_fields[0].widget.choices = choices.items()
next(iter(self.glossary_fields)).widget.choices = list(choices.items())
return super(BootstrapSecondaryMenuPlugin, self).get_form(request, obj, **kwargs)

plugin_pool.register_plugin(BootstrapSecondaryMenuPlugin)