From 2c4390767d99ca3e73a4c9fb3854a7c846909e18 Mon Sep 17 00:00:00 2001 From: Arvind Tiwari Date: Thu, 21 Sep 2017 15:14:15 +0530 Subject: [PATCH] minor fixes --- hosting/templates/hosting/includes/_navbar_user.html | 6 +++++- hosting/views.py | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hosting/templates/hosting/includes/_navbar_user.html b/hosting/templates/hosting/includes/_navbar_user.html index 126dd1e6..d06477ca 100644 --- a/hosting/templates/hosting/includes/_navbar_user.html +++ b/hosting/templates/hosting/includes/_navbar_user.html @@ -37,7 +37,11 @@
  • {% get_current_language as LANGUAGE_CODE %} - + {% if LANGUAGE_CODE == 'en-us'%} +   Deutsch + {% else %} +   English + {% endif %}
  • diff --git a/hosting/views.py b/hosting/views.py index 20c2cc78..4d2d4f42 100644 --- a/hosting/views.py +++ b/hosting/views.py @@ -698,7 +698,7 @@ class OrdersHostingDetailView(LoginRequiredMixin, 'last4') context['cc_brand'] = card_details.get('response_object').get( 'cc_brand') - context['vm'] = request.session.get('specs') + context['vm'] = self.request.session.get('specs') return context def post(self, request): @@ -776,8 +776,8 @@ class OrdersHostingDetailView(LoginRequiredMixin, 'redirect': reverse('hosting:virtual_machines'), '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.')) + ' We will send you a confirmation email as soon as' + ' it is ready.')) } return HttpResponse(json.dumps(response),