From b71fec7e6159b41e8825b1562c48ecf108cd8bcf Mon Sep 17 00:00:00 2001 From: PCoder Date: Mon, 16 Apr 2018 04:00:48 +0200 Subject: [PATCH] Fix a bug: use vm_pricing instead of pricing --- hosting/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosting/views.py b/hosting/views.py index 4670c5d5..ca40f205 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -753,7 +753,8 @@ class OrdersHostingDetailView(LoginRequiredMixin, DetailView): cpu=context['vm']['cores'], ssd_size=context['vm']['disk_size'], memory=context['vm']['memory'], - pricing_name=obj.pricing.name if obj.pricing else 'default' + pricing_name=(obj.vm_pricing.name + if obj.vm_pricing else 'default') ) context['vm']['price'] = price + vat context['subscription_end_date'] = vm_detail.end_date()