minor fixes

This commit is contained in:
Arvind Tiwari 2017-09-21 15:14:15 +05:30
parent 6c381dd3fb
commit 2c4390767d
2 changed files with 8 additions and 4 deletions

View file

@ -37,7 +37,11 @@
</li>
<li>
{% get_current_language as LANGUAGE_CODE %}
{% if LANGUAGE_CODE == 'en-us'%}
<a href="{% change_lang 'de' %}"><i class="fa fa-fw fa-globe" aria-hidden="true"></i>&nbsp;&nbsp;Deutsch</a>
{% else %}
<a href="{% change_lang 'en-us' %}"><i class="fa fa-fw fa-globe" aria-hidden="true"></i>&nbsp;&nbsp;English</a>
{% endif %}
</li>
</ul>
</div>

View file

@ -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),