From 2b9d94cd196302b132d00c623e4c2519cbec2532 Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Tue, 10 Nov 2015 18:06:10 -0200 Subject: [PATCH] =?UTF-8?q?Format=20dates=20of=20Sess=C3=A3o->Resumo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sessao/views.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sessao/views.py b/sessao/views.py index 94380c118..10f3e86f4 100644 --- a/sessao/views.py +++ b/sessao/views.py @@ -1026,9 +1026,12 @@ class ResumoView(FormMixin, 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') + context.update({'basica': ['Tipo de Sessão: ' + str(self.object.tipo), - 'Abertura: ' + str(self.object.data_inicio), - 'Encerramento: ' + str(self.object.data_fim) + 'Abertura: ' + abertura, + 'Encerramento: ' + encerramento, ]}) # ===================================================================== # Conteúdo Multimídia