From 52514bbbc4b9bbb8502628b9067bcc76a10ec2e9 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Wed, 16 Mar 2016 09:27:41 -0300 Subject: [PATCH] Fix qa --- parlamentares/forms.py | 2 +- parlamentares/views.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/parlamentares/forms.py b/parlamentares/forms.py index 786e2a1c3..92bd3ae64 100644 --- a/parlamentares/forms.py +++ b/parlamentares/forms.py @@ -8,7 +8,7 @@ from django.utils.translation import ugettext_lazy as _ import crispy_layout_mixin from crispy_layout_mixin import form_actions -from .models import Dependente, Filiacao, Mandato, Parlamentar, Legislatura +from .models import Dependente, Filiacao, Legislatura, Mandato, Parlamentar class ParlamentaresListForm(forms.Form): diff --git a/parlamentares/views.py b/parlamentares/views.py index d246425dc..deacb89b2 100644 --- a/parlamentares/views.py +++ b/parlamentares/views.py @@ -502,7 +502,6 @@ class MandatoEditView(UpdateView): def get_context_data(self, **kwargs): context = super(MandatoEditView, self).get_context_data(**kwargs) - mandato = Mandato.objects.get(id=self.kwargs['dk']) parlamentar = Parlamentar.objects.get(id=self.kwargs['pk']) context.update( {'object': parlamentar,