Commit 80f47938 authored by Thom Wiggers's avatar Thom Wiggers

The waiting list should only include non-cancels

parent 12daef3f
......@@ -232,7 +232,9 @@ def registration(request, event_id, action=None):
if (obj is not None and
obj.date_cancelled is None):
if (event.max_participants is not None and
Registration.objects.filter(event=event).count() >=
(Registration.objects
.filter(event=event,
date_cancelled=None).count()) >=
event.max_participants):
# Prepare email to send to the first person on the waiting
# list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment