Browse Source

Fix #2442

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

4
sapl/api/forms.py

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

Loading…
Cancel
Save