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,