Browse Source

Fix save parlamentar

pull/98/head
Eduardo Edson Batista Cordeiro Alves 9 years ago
parent
commit
b3bd9530d5
  1. 3
      parlamentares/views.py

3
parlamentares/views.py

@ -1,5 +1,5 @@
from re import sub
from datetime import date
from crispy_forms.helper import FormHelper
from crispy_forms.layout import HTML, ButtonHolder, Fieldset, Layout, Submit
from django import forms
@ -329,7 +329,6 @@ class ParlamentaresCadastroView(FormMixin, GenericView):
parlamentar.save()
mandato = Mandato()
mandato.parlamentar = parlamentar
mandato.legislatura = Legislatura.objects.get(id=pk)
mandato.save()

Loading…
Cancel
Save