Commit 53ed4c77 authored by MOREAU Ulysse's avatar MOREAU Ulysse

Apply suggestion to boutique/models.py

parent cd727d8d
......@@ -126,9 +126,7 @@ class Item(models.Model):
# for child in self.children.all():
# if child.contains_illegal_items:
# return True
if not self.is_available_atm:
return True
return False
return not self.is_available_atm:
def no_action(self, orderitem: "OrderItem") -> None:
pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment