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

Loading…
Cancel
Save