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
3611ac21
Commit
3611ac21
authored
Dec 05, 2016
by
Wietse Kuipers
Browse files
Fixes 500 for any cancellation
parent
c6eb6321
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/events/views.py
View file @
3611ac21
...
...
@@ -232,7 +232,9 @@ def registration(request, event_id, action=None):
elif
action
==
'cancel'
:
if
(
obj
is
not
None
and
obj
.
date_cancelled
is
None
):
if
event
.
max_participants
is
not
None
:
if
(
event
.
max_participants
is
not
None
and
len
(
Registration
.
objects
.
filter
(
event
=
event
))
>=
event
.
max_participants
):
# Prepare email to send to the first person on the waiting
# list
first_waiting
=
(
Registration
.
objects
...
...
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