Skip to content

Commit

Permalink
update: Adds renderer field to widget for django 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Winspear committed Mar 25, 2019
1 parent dead88a commit c4a55d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='[email protected]',
license='MIT',
Expand Down
2 changes: 1 addition & 1 deletion sorted_autocomplete_m2m/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit c4a55d7

Please sign in to comment.