Fix bug: use dict update instead of replacing key - 'vm'
This commit is contained in:
parent
8bf89e6711
commit
e1463127c2
1 changed files with 2 additions and 2 deletions
|
@ -885,7 +885,7 @@ class OrdersHostingDetailView(LoginRequiredMixin, DetailView):
|
||||||
pricing_name=(obj.vm_pricing.name
|
pricing_name=(obj.vm_pricing.name
|
||||||
if obj.vm_pricing else 'default')
|
if obj.vm_pricing else 'default')
|
||||||
)
|
)
|
||||||
context['vm'] = vm_price_dict
|
context['vm'].update(vm_price_dict)
|
||||||
context['subscription_end_date'] = vm_detail.end_date()
|
context['subscription_end_date'] = vm_detail.end_date()
|
||||||
except VMDetail.DoesNotExist:
|
except VMDetail.DoesNotExist:
|
||||||
try:
|
try:
|
||||||
|
@ -901,7 +901,7 @@ class OrdersHostingDetailView(LoginRequiredMixin, DetailView):
|
||||||
pricing_name=(obj.vm_pricing.name
|
pricing_name=(obj.vm_pricing.name
|
||||||
if obj.vm_pricing else 'default')
|
if obj.vm_pricing else 'default')
|
||||||
)
|
)
|
||||||
context['vm'] = vm_price_dict
|
context['vm'].update(vm_price_dict)
|
||||||
except WrongIdError:
|
except WrongIdError:
|
||||||
messages.error(
|
messages.error(
|
||||||
self.request,
|
self.request,
|
||||||
|
|
Loading…
Reference in a new issue