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
6991206b
Commit
6991206b
authored
Dec 17, 2020
by
VAN ZUIJLEN Nils
Browse files
Apply suggestion to boutique/models.py
parent
2bd5f137
Changes
1
Hide whitespace changes
Inline
Side-by-side
boutique/models.py
View file @
6991206b
...
...
@@ -354,7 +354,7 @@ class OrderItem(models.Model):
@
property
def
is_available_atm
(
self
):
return
(
not
self
.
item
.
hidden
)
or
orderitem
.
item
.
end_date
>
timezone
.
now
()
return
(
not
self
.
item
.
hidden
)
or
self
.
item
.
end_date
>
timezone
.
now
()
def
get_price
(
self
)
->
Decimal
:
return
self
.
quantity
*
self
.
item
.
price
...
...
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