Fixed: 'odict_values' object does not support indexing
And fixed : can't pickle dict_items objects
@@ -39,7 +39,7 @@ class BootstrapSecondaryMenuPlugin(BootstrapPluginBase):
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)
