Browse Source

FIX #1995 (#1997)

pull/2007/head
Mariana Mendes 7 years ago
committed by Edward
parent
commit
b8170010bd
  1. 5
      sapl/base/forms.py

5
sapl/base/forms.py

@ -730,6 +730,11 @@ class RelatorioMateriasPorAutorFilterSet(django_filters.FilterSet):
autoria__autor = django_filters.CharFilter(widget=forms.HiddenInput())
@property
def qs(self):
parent = super(RelatorioMateriasPorAutorFilterSet, self).qs
return parent.distinct().order_by('-ano', '-numero')
class Meta:
model = MateriaLegislativa
fields = ['tipo', 'data_apresentacao']

Loading…
Cancel
Save