From eac474b7a0f2acde568ecb542c49a15e6f15eece Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Mon, 7 Mar 2016 08:49:20 -0300 Subject: [PATCH] =?UTF-8?q?Arruma=20bug=20ao=20salvar=20mat=C3=A9ria=20ane?= =?UTF-8?q?xada=20sem=20preencher=20nada?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- materia/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/materia/views.py b/materia/views.py index e1846a5e0..889da958c 100644 --- a/materia/views.py +++ b/materia/views.py @@ -146,7 +146,7 @@ class MateriaAnexadaView(FormMixin, GenericView): messages.add_message(request, messages.INFO, msg) return self.render_to_response( {'form': form, - 'materialegislativa': mat_principal, + 'object': mat_principal, 'anexadas': anexadas}) anexada = Anexada() @@ -165,14 +165,14 @@ class MateriaAnexadaView(FormMixin, GenericView): messages.add_message(request, messages.INFO, msg) return self.render_to_response( {'form': form, - 'materialegislativa': mat_principal, + 'object': mat_principal, 'anexadas': anexadas}) return self.form_valid(form) else: return self.render_to_response( {'form': form, - 'materialegislativa': mat_principal, + 'object': mat_principal, 'anexadas': anexadas}) def get_success_url(self):