mobile order fixed

This commit is contained in:
Arvind Tiwari 2017-09-13 01:55:58 +05:30
commit 6237469ab2
3 changed files with 26 additions and 20 deletions

View file

@ -410,7 +410,6 @@ class PaymentOrderView(FormView):
@cache_control(no_cache=True, must_revalidate=True, no_store=True)
def get(self, request, *args, **kwargs):
# user is no longer added to session on the index page
# if 'specs' not in request.session or 'user' not in request.session:
if 'specs' not in request.session:
return HttpResponseRedirect(reverse('datacenterlight:index'))
return self.render_to_response(self.get_context_data())