From 32d98faf0da1aae43c7c6c7b0bc86cd31ab07940 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Sat, 3 Sep 2016 05:21:27 +0200 Subject: [PATCH] minor fixes --- bda/models.py | 3 ++- bda/views.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bda/models.py b/bda/models.py index 90ca9449..7856b517 100644 --- a/bda/models.py +++ b/bda/models.py @@ -158,7 +158,8 @@ class Participant(models.Model): blank=True) tirage = models.ForeignKey(Tirage) choicesrevente = models.ManyToManyField(Spectacle, - related_name="revente") + related_name="revente", + blank=True) def __str__(self): return "%s - %s" % (self.user, self.tirage.title) diff --git a/bda/views.py b/bda/views.py index 0c48ab6c..1ae1b425 100644 --- a/bda/views.py +++ b/bda/views.py @@ -20,6 +20,7 @@ from django.utils import timezone from django.views.generic.list import ListView import time +from datetime import timedelta from gestioncof.decorators import cof_required, buro_required from bda.models import Spectacle, Participant, ChoixSpectacle, Attribution,\