Browse Source

Fixes #904

pull/949/head
Edward Ribeiro 8 years ago
parent
commit
be8dfb4e86
  1. 3
      sapl/parlamentares/views.py

3
sapl/parlamentares/views.py

@ -318,7 +318,10 @@ class ParlamentarCrud(Crud):
except ObjectDoesNotExist:
return []
else:
if l:
return queryset.filter(mandato__legislatura_id=l.pk)
else:
return []
def get_headers(self):
return ['', _('Parlamentar'), _('Partido'), _('Ativo?')]

Loading…
Cancel
Save