From cb2fd519b61046e4fee14a09eae3f0983a656187 Mon Sep 17 00:00:00 2001 From: Eduardo Edson Batista Cordeiro Alves Date: Mon, 21 Mar 2016 11:38:18 -0300 Subject: [PATCH] =?UTF-8?q?Ajusta=20data=20de=20envio=20de=20proposi=C3=A7?= =?UTF-8?q?=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- materia/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/materia/views.py b/materia/views.py index c0f2cb4a3..a096579b1 100644 --- a/materia/views.py +++ b/materia/views.py @@ -1397,7 +1397,8 @@ class ProposicaoEditView(CreateView): else: proposicao.autor = materia.autoria_set.first().autor proposicao.materia = materia - proposicao.data_envio = datetime.now() + if not proposicao.data_envio: + proposicao.data_envio = datetime.now() proposicao.save() return redirect(self.get_success_url()) else: