From: Thadeu Lima de Souza Cascardo Date: Mon, 15 Oct 2007 15:27:12 +0000 (-0200) Subject: Mudança da data final de inscrição. X-Git-Url: http://git.cascardo.info/?p=cascardo%2Feventmanager.git;a=commitdiff_plain Mudança da data final de inscrição. --- diff --git a/views.py b/views.py index 73e5e3e..6b370ff 100644 --- a/views.py +++ b/views.py @@ -235,7 +235,7 @@ def inscricao_boleto(request): # dynamic values of the form now = datetime.now() today = datetime.date(now) - first_date = datetime.date(datetime(2007, 10, 12)) + first_date = datetime.date(datetime(2007, 10, 16)) c = {} p = request.user.participante_set.get() @@ -258,8 +258,8 @@ def inscricao_boleto(request): new_ref = p.refbanco initial['refTran'] = '1458197%s' % str(new_ref).zfill(10) - if today < first_date: - initial['dtVenc'] = '12102007' + if today <= first_date: + initial['dtVenc'] = '16102007' if not p.comercial: initial['valor'] = '3500' else: