From e42d50daf67b40f2ece995e2ae82ec61e4b2ccab Mon Sep 17 00:00:00 2001 From: Eduardo Calil Date: Thu, 25 Feb 2016 12:42:51 -0300 Subject: [PATCH] =?UTF-8?q?Resolve=20quebra=20na=20tela=20de=20Pauta=20qua?= =?UTF-8?q?ndo=20a=20sess=C3=A3o=20ainda=20nao=20foi=20encerrada?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sessao/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sessao/views.py b/sessao/views.py index 35e2755f2..ca6392a7b 100644 --- a/sessao/views.py +++ b/sessao/views.py @@ -2202,7 +2202,10 @@ class PautaSessaoDetailView(sessao_crud.CrudDetailView): # ===================================================================== # Identificação Básica abertura = self.object.data_inicio.strftime('%d/%m/%Y') - encerramento = self.object.data_fim.strftime('%d/%m/%Y') + if self.object.data_fim: + encerramento = self.object.data_fim.strftime('%d/%m/%Y') + else: + encerramento = "" context.update({'basica': ['Tipo de Sessão: ' + str(self.object.tipo), 'Abertura: ' + abertura,