forked from DGNum/gestioCOF
Fixes
- Suppression d'un import inutile - Erreur d'encodage
This commit is contained in:
parent
0e12ae1e90
commit
f64d882dd6
1 changed files with 1 additions and 3 deletions
|
@ -16,7 +16,6 @@ from django.core.mail import send_mail
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
from django.views.generic.list import ListView
|
from django.views.generic.list import ListView
|
||||||
|
|
||||||
from datetime import timedelta
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from gestioncof.decorators import cof_required, buro_required
|
from gestioncof.decorators import cof_required, buro_required
|
||||||
|
@ -110,8 +109,7 @@ def places(request, tirage_id):
|
||||||
def inscription(request, tirage_id):
|
def inscription(request, tirage_id):
|
||||||
tirage = get_object_or_404(Tirage, id=tirage_id)
|
tirage = get_object_or_404(Tirage, id=tirage_id)
|
||||||
if timezone.now() < tirage.ouverture:
|
if timezone.now() < tirage.ouverture:
|
||||||
error_desc = "Ouverture le %s" % (
|
error_desc = tirage.ouverture.strftime('Ouverture le %d %b %Y à %H:%M')
|
||||||
tirage.ouverture.strftime('%d %b %Y à %H:%M'))
|
|
||||||
return render(request, 'resume_inscription.html',
|
return render(request, 'resume_inscription.html',
|
||||||
{"error_title": "Le tirage n'est pas encore ouvert !",
|
{"error_title": "Le tirage n'est pas encore ouvert !",
|
||||||
"error_description": error_desc})
|
"error_description": error_desc})
|
||||||
|
|
Loading…
Reference in a new issue