Changed hostingorder to m2m with vm plan model

This commit is contained in:
Levi 2016-05-04 22:06:49 -05:00
commit 90aca7c25c
3 changed files with 22 additions and 1 deletions

View file

@ -110,7 +110,7 @@ class HostingOrder(models.Model):
ORDER_APPROVED_STATUS = 'Approved'
ORDER_DECLINED_STATUS = 'Declined'
VMPlan = models.OneToOneField(VirtualMachinePlan)
VMPlan = models.ForeignKey(VirtualMachinePlan)
customer = models.ForeignKey(StripeCustomer)
billing_address = models.ForeignKey(BillingAddress)
created_at = models.DateTimeField(auto_now_add=True)