Browse Source

Fixes #904

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

5
sapl/parlamentares/views.py

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

Loading…
Cancel
Save