Commit 2bd5f137 authored by VAN ZUIJLEN Nils's avatar VAN ZUIJLEN Nils
Browse files

Apply suggestion to boutique/

parent 32760b3d
...@@ -267,10 +267,10 @@ class Order(models.Model): ...@@ -267,10 +267,10 @@ class Order(models.Model):
super().save(*args, **kwargs) super().save(*args, **kwargs)
def clean_illegal_items(self): def clean_illegal_items(self) -> int:
# No suppression if already ordered # No suppression if already ordered
if self.ordered: if self.ordered:
return False return 0
deleted_count = 0 deleted_count = 0
for orderitem in self.items.all(): for orderitem in self.items.all():
if not orderitem.is_available_atm: if not orderitem.is_available_atm:
Supports Markdown
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