new template for datacenterlight/payment

This commit is contained in:
Arvind Tiwari 2017-09-01 23:06:57 +05:30
commit cc5eaa4047
2 changed files with 220 additions and 3 deletions

View file

@ -406,7 +406,7 @@ class WhyDataCenterLightView(IndexView):
class PaymentOrderView(FormView):
template_name = 'hosting/payment.html'
template_name = 'datacenterlight/landing_payment.html'
form_class = BillingAddressForm
def get_form_kwargs(self):
@ -434,8 +434,8 @@ class PaymentOrderView(FormView):
@cache_control(no_cache=True, must_revalidate=True, no_store=True)
def get(self, request, *args, **kwargs):
if 'specs' not in request.session or 'user' not in request.session:
return HttpResponseRedirect(reverse('datacenterlight:index'))
# if 'specs' not in request.session or 'user' not in request.session:
# return HttpResponseRedirect(reverse('datacenterlight:index'))
return self.render_to_response(self.get_context_data())
def post(self, request, *args, **kwargs):