From 5b79c2555e8c1056bb24276ef5b610b76664f620 Mon Sep 17 00:00:00 2001 From: VictorFabreF Date: Wed, 19 Sep 2018 17:56:39 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20remo=C3=A7=C3=A3o=20de=20par=C3=A2me?= =?UTF-8?q?tro=20desnecess=C3=A1rio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/comissoes/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sapl/comissoes/forms.py b/sapl/comissoes/forms.py index c51f89a68..94d9b081f 100644 --- a/sapl/comissoes/forms.py +++ b/sapl/comissoes/forms.py @@ -69,9 +69,9 @@ class PeriodoForm(forms.ModelForm): if not data_fim: data_fim = data_inicio - legislatura = Legislatura.objects.filter(Q(data_inicio__lte=data_inicio, + legislatura = Legislatura.objects.filter(data_inicio__lte=data_inicio, data_fim__gte=data_fim, - )) + ) if not legislatura: raise ValidationError('O perĂ­odo informado '