Browse Source

minor fix

pull/2431/head
Victor Fabre 7 years ago
parent
commit
ac11447776
  1. 2
      sapl/api/forms.py

2
sapl/api/forms.py

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

Loading…
Cancel
Save