Browse Source

Fix #2442

pull/2443/head
Leandro Roberto 6 years ago
parent
commit
2073305da7
  1. 6
      sapl/api/forms.py

6
sapl/api/forms.py

@ -100,9 +100,9 @@ class AutorChoiceFilterSet(SaplGenericRelationSearchFilterSet):
'tipo', 'tipo',
'nome', ] 'nome', ]
def filter_q(self, queryset, name,value): def filter_q(self, queryset, name, value):
return SaplGenericRelationSearchFilterSet.filter_q( return super().filter_q(
self, queryset, value).distinct('nome').order_by('nome') queryset, name, value).distinct('nome').order_by('nome')
class AutorSearchForFieldFilterSet(AutorChoiceFilterSet): class AutorSearchForFieldFilterSet(AutorChoiceFilterSet):

Loading…
Cancel
Save