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
c925a1e7
Verified
Commit
c925a1e7
authored
Feb 13, 2019
by
Sébastiaan Versteeg
Browse files
Fix pizza order where pizza event has no notification, closes
#819
parent
eb8602ca
Changes
1
Show whitespace changes
Inline
Side-by-side
website/pizzas/models.py
View file @
c925a1e7
...
...
@@ -186,13 +186,13 @@ class Order(models.Model):
})
def
save
(
self
,
*
args
,
**
kwargs
):
if
not
self
.
id
:
if
not
self
.
id
and
self
.
pizza_event
.
end_reminder
:
self
.
pizza_event
.
end_reminder
.
users
.
remove
(
self
.
member
)
super
().
save
(
*
args
,
**
kwargs
)
def
delete
(
self
,
using
=
None
,
keep_parents
=
False
):
if
not
self
.
id
:
if
not
self
.
id
and
self
.
pizza_event
.
end_reminder
:
self
.
pizza_event
.
end_reminder
.
users
.
add
(
self
.
member
)
super
().
delete
(
using
,
keep_parents
)
...
...
Write
Preview
Supports
Markdown
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