Converting ugettext_lazy proxy to string

This commit is contained in:
PCoder 2017-09-16 17:54:05 +05:30
parent c9fd741c89
commit f2ee0ea657
1 changed files with 3 additions and 3 deletions

View File

@ -770,10 +770,10 @@ class OrdersHostingDetailView(LoginRequiredMixin,
response = { response = {
'status': True, 'status': True,
'redirect': reverse('hosting:virtual_machines'), 'redirect': reverse('hosting:virtual_machines'),
'msg_title': _('Thank you for the order.').encode('utf-8'), 'msg_title': str(_('Thank you for the order.')),
'msg_body': _('Your VM will be up and running in a few moments.' 'msg_body': str(_('Your VM will be up and running in a few moments.'
' We will send you a confirmation email as soon as' ' We will send you a confirmation email as soon as'
' it is ready.').encode('utf-8') ' it is ready.'))
} }
return HttpResponse(json.dumps(response), return HttpResponse(json.dumps(response),