forked from uncloud/uncloud
Wire VMProduct creation to order
This commit is contained in:
parent
b2fe5014d8
commit
809a55e1dd
3 changed files with 30 additions and 8 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue