Browse Source

Fixes #1179

pull/1120/merge
Edward Ribeiro 8 years ago
parent
commit
b3a830753a
  1. 5
      sapl/base/forms.py

5
sapl/base/forms.py

@ -505,6 +505,11 @@ class RelatorioHistoricoTramitacaoFilterSet(django_filters.FilterSet):
'widget': RangeWidgetOverride} 'widget': RangeWidgetOverride}
}} }}
@property
def qs(self):
parent = super(RelatorioHistoricoTramitacaoFilterSet, self).qs
return parent.distinct().order_by('-ano', 'tipo', 'numero')
class Meta: class Meta:
model = MateriaLegislativa model = MateriaLegislativa
fields = ['tipo', 'tramitacao__unidade_tramitacao_local', fields = ['tipo', 'tramitacao__unidade_tramitacao_local',

Loading…
Cancel
Save