~netlandish/django-wiki

580a81619431ea345c2910e446c63373b7a19ded — Benjamin Bach 8 years ago 99a6008
Django 1.10 bug: `Select.render` no longer receives `choices` kwarg
1 files changed, 1 insertions(+), 3 deletions(-)

M wiki/forms.py
M wiki/forms.py => wiki/forms.py +1 -3
@@ 253,9 253,7 @@ class SelectWidgetBootstrap(forms.Select):
             'options': self.render_options(choices, [value]),
             'label': _('Select an option'),
             'name': name, 'disabled': ' disabled' if self.disabled else '',
             'noscript': self.noscript_widget.render(
                 name, value, {},
                 choices)}]
             'noscript': self.noscript_widget.render(name, value, {})}]
        return mark_safe('\n'.join(output))

    def render_option(self, selected_choices, option_value, option_label):