From c4a55d79a92da1191f9513a16f76ce342a005ffa Mon Sep 17 00:00:00 2001 From: James Winspear Date: Mon, 25 Mar 2019 13:00:25 +0000 Subject: [PATCH] update: Adds renderer field to widget for django 2.1 --- setup.py | 2 +- sorted_autocomplete_m2m/widgets.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index ca95592..2fc6955 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name='django-sorted-autocomplete-m2m', packages=['sorted_autocomplete_m2m'], - version='1.0.6', + version='1.0.7', author='Simon Lessnick', author_email='simon@nixa.ca', license='MIT', diff --git a/sorted_autocomplete_m2m/widgets.py b/sorted_autocomplete_m2m/widgets.py index 9f3c2ea..6cd023c 100644 --- a/sorted_autocomplete_m2m/widgets.py +++ b/sorted_autocomplete_m2m/widgets.py @@ -32,7 +32,7 @@ def filter_unselected_choices(self, value): else: self.choices.queryset = self.choices.queryset.filter(pk__in=value) - def render(self, name, value, attrs=None, choices=()): + def render(self, name, value, attrs=None, choices=(), renderer=None): self.filter_unselected_choices(value) selected, unselected = self._render(name, value, attrs, choices) return get_template('sorted-autocomplete-m2m/m2m.html').render({