forked from DGNum/gestioCOF
Cache les vieux événements
This commit is contained in:
parent
5a1d854bb1
commit
19456756e4
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ def update_event_form_comments(event, form, registration):
|
||||||
@login_required
|
@login_required
|
||||||
def event(request, event_id):
|
def event(request, event_id):
|
||||||
event = get_object_or_404(Event, id=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
|
raise Http404
|
||||||
success = False
|
success = False
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
|
|
Loading…
Reference in a new issue