Cache les vieux événements

This commit is contained in:
Martin Pépin 2016-08-06 15:34:01 +02:00
parent 5a1d854bb1
commit 19456756e4

View file

@ -188,7 +188,7 @@ def update_event_form_comments(event, form, registration):
@login_required
def event(request, event_id):
event = get_object_or_404(Event, id=event_id)
if not event.registration_open:
if (not event.registration_open) or event.old:
raise Http404
success = False
if request.method == "POST":