Commit 78c3fe34 authored by Luuk Scholten's avatar Luuk Scholten
Browse files

Merge branch 'fix/change-len-to-count' into 'release/1.0.0'

Change len() to .count() for check

Minder SQL uitvoerdinges

See merge request !208
parents 35dfed07 38b4e16e
......@@ -233,7 +233,7 @@ 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
len(Registration.objects.filter(event=event)) >=
Registration.objects.filter(event=event).count() >=
# 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