diff --git a/gestioncof/templates/home.html b/gestioncof/templates/home.html
index 9d32c40c..f476a0dd 100644
--- a/gestioncof/templates/home.html
+++ b/gestioncof/templates/home.html
@@ -83,8 +83,8 @@
Gestion tirages BDA
- {% if open_tirages %}
- {% for tirage in open_tirages %}
+ {% if active_tirages %}
+ {% for tirage in active_tirages %}
{{ tirage.title }}
- Spectacles
diff --git a/gestioncof/views.py b/gestioncof/views.py
index b635ecab..be3a51d4 100644
--- a/gestioncof/views.py
+++ b/gestioncof/views.py
@@ -42,7 +42,10 @@ def home(request):
Survey.objects.filter(survey_open=True, old=False).all(),
"open_events":
Event.objects.filter(registration_open=True, old=False).all(),
- "open_tirages": Tirage.objects.filter(active=True).all(),
+ "active_tirages": Tirage.objects.filter(active=True).all(),
+ "open_tirages":
+ Tirage.objects.filter(active=True,
+ ouverture__lte=timezone.now()).all(),
"now": timezone.now()}
return render(request, "home.html", data)