From f2ee0ea657611f5d9b23512c945f0032df1d2404 Mon Sep 17 00:00:00 2001
From: PCoder <purple.coder@yahoo.co.uk>
Date: Sat, 16 Sep 2017 17:54:05 +0530
Subject: [PATCH] Converting ugettext_lazy proxy to string

---
 hosting/views.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/hosting/views.py b/hosting/views.py
index 38af0e1d..828b48ab 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.').encode('utf-8'),
-            'msg_body': _('Your VM will be up and running in a few moments.'
+            'msg_title': str(_('Thank you for the order.')),
+            'msg_body': str(_('Your VM will be up and running in a few moments.'
                           ' We will send you a confirmation email as soon as'
-                          ' it is ready.').encode('utf-8')
+                          ' it is ready.'))
         }
 
         return HttpResponse(json.dumps(response),