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')