From 345c6d25f19982036d54767246292d211371fa6e Mon Sep 17 00:00:00 2001 From: Lincoln de Sousa Date: Tue, 18 Sep 2007 18:47:57 -0300 Subject: [PATCH] =?utf8?q?adicionando=20patch=20do=20gabriel=20(brigaduxo?= =?utf8?q?=20=3D)=20e=20arrumando=20um=20probleminha=20no=20form=20de=20in?= =?utf8?q?scri=C4=87=C3=B5es?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- eventos/models.py | 4 ++-- settings.py | 2 +- templates/meus_trabalhos.html | 7 +++++++ urls.py | 1 + views.py | 29 +++++++++++++++++++++++++++-- 5 files changed, 38 insertions(+), 5 deletions(-) diff --git a/eventos/models.py b/eventos/models.py index 3d51818..eda0771 100644 --- a/eventos/models.py +++ b/eventos/models.py @@ -41,9 +41,9 @@ class Evento(models.Model): class Admin: fields = ( - (None, {'fields': ('nome', 'data_inicio', 'data_final')}), + ('Informações do evento', {'fields': ('nome', 'data_inicio', 'data_final')}), ('Informações da sede', {'fields': ('nome_local', 'nome_contato', - 'cidade', 'uf', 'rua', 'numero', 'info_adicional')}), + 'cidade', 'uf', 'rua', 'numero','telefone', 'info_adicional')}), ) def __str__(self): diff --git a/settings.py b/settings.py index 693a971..b52e14d 100644 --- a/settings.py +++ b/settings.py @@ -24,7 +24,7 @@ DATABASE_PORT = '' # Set to empty string for default. Not used with # although not all variations may be possible on all operating systems. # If running in a Windows environment this must be set to the same as your # system time zone. -TIME_ZONE = 'America/Chicago' +TIME_ZONE = 'America/Sao_paulo' # Language code for this installation. All choices can be found here: # http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes diff --git a/templates/meus_trabalhos.html b/templates/meus_trabalhos.html index 84af9da..1aa3e83 100644 --- a/templates/meus_trabalhos.html +++ b/templates/meus_trabalhos.html @@ -3,6 +3,13 @@

Trabalhos Inscritos

+{# o if abaixo eh para o caso de algum trabalho ter sido editado e redirecionado #} +{% if editado_sucesso %} +
+

O trabalho "{{ editado_sucesso }}" for editado com sucesso!

+
+{% endif %} + {% if trabalhos %}