|
@ -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?')] |
|
|