Skip to content

Commit

Permalink
Merge pull request #3 from boilerroomtv/upgrade/updates_to_django_2.1
Browse files Browse the repository at this point in the history
update: Adds renderer field to widget for django 2.1
  • Loading branch information
Winspear authored Mar 25, 2019
2 parents dead88a + c4a55d7 commit 8be8459
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 8be8459

Please sign in to comment.