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
|
||||
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()
|
||||
except VMDetail.DoesNotExist:
|
||||
try:
|
||||
|
@ -901,7 +901,7 @@ class OrdersHostingDetailView(LoginRequiredMixin, DetailView):
|
|||
pricing_name=(obj.vm_pricing.name
|
||||
if obj.vm_pricing else 'default')
|
||||
)
|
||||
context['vm'] = vm_price_dict
|
||||
context['vm'].update(vm_price_dict)
|
||||
except WrongIdError:
|
||||
messages.error(
|
||||
self.request,
|
||||
|
|
Loading…
Reference in a new issue