Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
38b4e16e
Commit
38b4e16e
authored
Dec 06, 2016
by
Sébastiaan Versteeg
Browse files
Change len() to .count() for check
parent
b6b8b612
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/events/views.py
View file @
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
(
)
>=
event
.
max_participants
):
# Prepare email to send to the first person on the waiting
# list
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment