Added encode method for ugettext_lazy strings

This commit is contained in:
PCoder 2017-09-16 17:22:37 +05:30
parent 40f13784ac
commit c9fd741c89

View file

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