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
f9cf3246
Commit
f9cf3246
authored
Dec 17, 2020
by
MOREAU Ulysse
Browse files
Fix typo
parent
75ccf9c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
boutique/models.py
View file @
f9cf3246
...
...
@@ -210,7 +210,7 @@ class Item(models.Model):
second_option
:
str
=
""
,
)
->
"OrderItem"
:
if
self
.
hidden
or
self
.
end_date
<
timezone
.
now
():
raise
ValidationError
(
"Ce produit est périmé ou a été caché par un administrateur. Il
s
n'a pas été ajouté au panier."
)
raise
ValidationError
(
"Ce produit est périmé ou a été caché par un administrateur. Il n'a pas été ajouté au panier."
)
order
=
Order
.
objects
.
get_current_order
(
user
)
return
self
.
add_to_order
(
order
,
quantity
,
customization
,
option
,
second_option
)
...
...
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