From 25c0694b6cba2df240a803e12be8b44db0db03ac Mon Sep 17 00:00:00 2001 From: PCoder Date: Mon, 16 Apr 2018 03:36:56 +0200 Subject: [PATCH] Use vm_pricing for creating HostingOrder --- hosting/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hosting/models.py b/hosting/models.py index de5732bc..09c6eb2a 100644 --- a/hosting/models.py +++ b/hosting/models.py @@ -73,12 +73,13 @@ class HostingOrder(AssignPermissionsMixin, models.Model): @classmethod def create(cls, price=None, vm_id=None, customer=None, - billing_address=None): + billing_address=None, vm_pricing=None): instance = cls.objects.create( price=price, vm_id=vm_id, customer=customer, - billing_address=billing_address + billing_address=billing_address, + vm_pricing=vm_pricing ) instance.assign_permissions(customer.user) return instance