From: Lincoln de Sousa Date: Tue, 18 Sep 2007 21:47:57 +0000 (-0300) Subject: adicionando patch do gabriel (brigaduxo =) e arrumando um probleminha no form de... X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Feventmanager.git;a=commitdiff_plain;h=345c6d25f19982036d54767246292d211371fa6e adicionando patch do gabriel (brigaduxo =) e arrumando um probleminha no form de inscrićões --- 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 %}