From 703399f616e15d96e148f1cd7d46d6fdd449ed0f Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Thu, 14 Jan 2016 13:43:36 -0200 Subject: [PATCH] MINOR: remove left over use of ipdb and unused variable --- parlamentares/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/parlamentares/views.py b/parlamentares/views.py index 4aadaca33..a68817516 100644 --- a/parlamentares/views.py +++ b/parlamentares/views.py @@ -158,7 +158,6 @@ class ParlamentaresView(GenericView): form = ParlamentaresListForm() if not Legislatura.objects.all(): - nao_tem_legislatura = True mensagem = "Cadastre alguma Legislatura antes\ de cadastrar algum Parlamentar" messages.add_message(request, messages.INFO, mensagem) @@ -667,7 +666,7 @@ class MesaDiretoraView(FormMixin, GenericView): if (not Legislatura.objects.all() or not SessaoLegislativa.objects.all()): return self.validation(request) - import ipdb; ipdb.set_trace() + mesa = SessaoLegislativa.objects.filter( legislatura=Legislatura.objects.last()).first( ).composicaomesa_set.all()