Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
concrexit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
70
Issues
70
List
Boards
Labels
Service Desk
Milestones
Merge Requests
10
Merge Requests
10
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
thalia
concrexit
Commits
254fbd79
Commit
254fbd79
authored
Dec 05, 2016
by
Luuk Scholten
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix-event-cancel-500' into 'release/1.0.0'
Fixes 500 for any cancellation See merge request
!205
parents
c6eb6321
3611ac21
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
website/events/views.py
website/events/views.py
+3
-1
No files found.
website/events/views.py
View file @
254fbd79
...
@@ -232,7 +232,9 @@ def registration(request, event_id, action=None):
...
@@ -232,7 +232,9 @@ def registration(request, event_id, action=None):
elif
action
==
'cancel'
:
elif
action
==
'cancel'
:
if
(
obj
is
not
None
and
if
(
obj
is
not
None
and
obj
.
date_cancelled
is
None
):
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
# Prepare email to send to the first person on the waiting
# list
# list
first_waiting
=
(
Registration
.
objects
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