From 2073305da76fd64dc47d256c9b69a677a677f949 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Fri, 4 Jan 2019 08:59:30 -0200 Subject: [PATCH] Fix #2442 --- sapl/api/forms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sapl/api/forms.py b/sapl/api/forms.py index b9ad11aca..14a6ef114 100644 --- a/sapl/api/forms.py +++ b/sapl/api/forms.py @@ -100,9 +100,9 @@ class AutorChoiceFilterSet(SaplGenericRelationSearchFilterSet): 'tipo', 'nome', ] - def filter_q(self, queryset, name,value): - return SaplGenericRelationSearchFilterSet.filter_q( - self, queryset, value).distinct('nome').order_by('nome') + def filter_q(self, queryset, name, value): + return super().filter_q( + queryset, name, value).distinct('nome').order_by('nome') class AutorSearchForFieldFilterSet(AutorChoiceFilterSet):