Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pole-Web
Website
Commits
2bd5f137
Commit
2bd5f137
authored
Dec 17, 2020
by
VAN ZUIJLEN Nils
Browse files
Apply suggestion to boutique/models.py
parent
32760b3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
boutique/models.py
View file @
2bd5f137
...
...
@@ -267,10 +267,10 @@ class Order(models.Model):
super
().
save
(
*
args
,
**
kwargs
)
def
clean_illegal_items
(
self
):
def
clean_illegal_items
(
self
)
->
int
:
# No suppression if already ordered
if
self
.
ordered
:
return
False
return
0
deleted_count
=
0
for
orderitem
in
self
.
items
.
all
():
if
not
orderitem
.
is_available_atm
:
...
...
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