Browse Source

Fix qa

pull/269/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
committed by Edward Ribeiro
parent
commit
52514bbbc4
  1. 2
      parlamentares/forms.py
  2. 1
      parlamentares/views.py

2
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):

1
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,

Loading…
Cancel
Save