From 517bd5c6e65e4b55ccd52fd88c7f869eec62daa9 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Fri, 31 Jan 2020 15:46:21 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20permite=20sess=C3=B5es=20plen=C3=A1r?= =?UTF-8?q?ias=20fora=20da=20sess=C3=A3o=20legislativa?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/sessao/forms.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sapl/sessao/forms.py b/sapl/sessao/forms.py index 967cf8729..848430dab 100644 --- a/sapl/sessao/forms.py +++ b/sapl/sessao/forms.py @@ -82,6 +82,14 @@ class SessaoPlenariaForm(FileFieldCheckMixin, ModelForm): if encerramento is not None: encerramento_entre_leg = leg.data_inicio <= encerramento <= leg.data_fim encerramento_entre_sl = sl.data_inicio <= encerramento <= sl.data_fim + + ## Sessões Extraordinárias podem estar fora da sessão legislativa + descricao_tipo = tipo.nome.lower() + if descricao_tipo == "extraordinária" or descricao_tipo == "especial": + # Ignora checagem de limites para Sessão Legislativa + abertura_entre_sl = True + encerramento_entre_sl = True + # Verificação das datas de abertura e encerramento da Sessão # Verificações com a data de encerramento preenchidas if encerramento is not None: