From 5bb3bb2990b6452728e3802503b8146870592d20 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Wed, 23 Aug 2017 18:43:45 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20valida=20campos=20obrigat=C3=B3rios?= =?UTF-8?q?=20de=20SessaoPlenariaForm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/sessao/forms.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sapl/sessao/forms.py b/sapl/sessao/forms.py index f77a21ac0..3be7db1fd 100644 --- a/sapl/sessao/forms.py +++ b/sapl/sessao/forms.py @@ -62,6 +62,9 @@ class SessaoPlenariaForm(ModelForm): def clean(self): super(SessaoPlenariaForm, self).clean() + if not self.is_valid(): + return self.cleaned_data + instance = self.instance num = self.cleaned_data['numero']