Fix a bug: use vm_pricing instead of pricing

This commit is contained in:
PCoder 2018-04-16 04:00:48 +02:00
parent b103772c0d
commit b71fec7e61

View file

@ -753,7 +753,8 @@ class OrdersHostingDetailView(LoginRequiredMixin, DetailView):
cpu=context['vm']['cores'], cpu=context['vm']['cores'],
ssd_size=context['vm']['disk_size'], ssd_size=context['vm']['disk_size'],
memory=context['vm']['memory'], 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['vm']['price'] = price + vat
context['subscription_end_date'] = vm_detail.end_date() context['subscription_end_date'] = vm_detail.end_date()