From c9fd741c895109fb3b19b962fe5b9fb9002900cb Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 16 Sep 2017 17:22:37 +0530 Subject: [PATCH] Added encode method for ugettext_lazy strings --- hosting/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hosting/views.py b/hosting/views.py index 09c3e01f..38af0e1d 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -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),