Browse Source

Teste fix Travis

pull/907/head
Eduardo Edson Batista Cordeiro Alves 8 years ago
parent
commit
4f04eedcd7
  1. 7
      sapl/materia/views.py

7
sapl/materia/views.py

@ -784,10 +784,15 @@ class RelatoriaCrud(MasterDetailCrud):
def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
try:
comissao = Comissao.objects.get(
pk=context['form'].initial['comissao'])
except ObjectDoesNotExist:
pass
else:
composicao = comissao.composicao_set.last()
participacao = Participacao.objects.filter(composicao=composicao)
participacao = Participacao.objects.filter(
composicao=composicao)
parlamentares = []
for p in participacao:

Loading…
Cancel
Save