From 580a81619431ea345c2910e446c63373b7a19ded Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Fri, 14 Oct 2016 18:27:53 +0200 Subject: [PATCH] Django 1.10 bug: `Select.render` no longer receives `choices` kwarg --- wiki/forms.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wiki/forms.py b/wiki/forms.py index e5bd634a..36bbb982 100644 --- a/wiki/forms.py +++ b/wiki/forms.py @@ -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): -- 2.45.2