From d7ec7a2ec28eb7e1dfc92d0d4c6c4b94ab0c7db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Ravetier?= Date: Wed, 11 Nov 2020 11:45:25 +0100 Subject: [PATCH] close #768 : On my side with these modifications, the demo can run without error. --- demo/demo/admin.py | 2 +- suit/widgets.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/demo/demo/admin.py b/demo/demo/admin.py index 388b8f68..a0199709 100644 --- a/demo/demo/admin.py +++ b/demo/demo/admin.py @@ -66,7 +66,7 @@ class PopulationFilter(IsNullFieldListFilter): class CountryAdmin(RelatedFieldAdmin): form = CountryForm search_fields = ('name', 'code') - list_display = ('name', 'code', 'link_to_continent', 'independence_day') + list_display = ('name', 'code', 'independence_day') list_filter = ('continent', 'independence_day', 'code', ('population', PopulationFilter)) suit_list_filter_horizontal = ('code', 'population') list_select_related = True diff --git a/suit/widgets.py b/suit/widgets.py index 9853121f..9e6f71ce 100644 --- a/suit/widgets.py +++ b/suit/widgets.py @@ -17,7 +17,7 @@ def media(self): return forms.Media(js=('suit/js/autosize.min.js',)) def render(self, name, value, attrs=None, renderer=None): - output = super(AutosizedTextarea, self).render(name, value, attrs,renderer) + output = super(AutosizedTextarea, self).render(name, value, attrs) output += mark_safe( "" % name) @@ -30,7 +30,7 @@ class CharacterCountTextarea(AutosizedTextarea): """ def render(self, name, value, attrs=None, renderer=None): - output = super(CharacterCountTextarea, self).render(name, value, attrs, renderer) + output = super(CharacterCountTextarea, self).render(name, value, attrs,) output += mark_safe( "" % name) @@ -69,7 +69,7 @@ def enclose_value(self, value, wrapper_class): return '%s' % (wrapper_class, value) def render(self, name, value, attrs=None, renderer=None): - output = super(EnclosedInput, self).render(name, value, attrs, renderer) + output = super(EnclosedInput, self).render(name, value, attrs) div_classes = set() if self.prepend: div_classes.add('input-group')