Wire VMProduct creation to order

This commit is contained in:
fnux 2020-02-27 18:54:13 +01:00
commit 809a55e1dd
3 changed files with 30 additions and 8 deletions

View file

@ -60,6 +60,13 @@ class Order(models.Model):
choices = RecurringPeriod.choices,
default = RecurringPeriod.PER_MONTH)
@property
def products(self):
# Blows up due to circular dependency...
# vms = VMProduct.objects.filter(order=self)
vms = []
return vms
# def amount(self):
# amount = recurring_price
# if recurring and first_month: