Commit 6991206b authored by VAN ZUIJLEN Nils's avatar VAN ZUIJLEN Nils
Browse files

Apply suggestion to boutique/models.py

parent 2bd5f137
......@@ -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
......
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