Local changes
This commit is contained in:
parent
8099e5e46a
commit
264745f40f
3 changed files with 12 additions and 12 deletions
|
|
@ -236,6 +236,7 @@ class WhyDataCenterLightView(IndexView):
|
|||
template_name = "datacenterlight/whydatacenterlight.html"
|
||||
|
||||
|
||||
@method_decorator(decorator=never_cache, name='get')
|
||||
class PaymentOrderView(FormView):
|
||||
template_name = 'datacenterlight/landing_payment.html'
|
||||
|
||||
|
|
@ -313,12 +314,10 @@ class PaymentOrderView(FormView):
|
|||
|
||||
return context
|
||||
|
||||
@cache_control(no_cache=True, must_revalidate=True, no_store=True)
|
||||
def get(self, request, *args, **kwargs):
|
||||
request.session.pop('vat_validation_status')
|
||||
request.session.pop('card_id')
|
||||
request.session.pop('token')
|
||||
request.session.pop('id_payment_method')
|
||||
for k in ['vat_validation_status', 'card_id', 'token', 'id_payment_method']:
|
||||
if k in request.session:
|
||||
request.session.pop(k)
|
||||
logger.debug("Session: %s" % str(request.session))
|
||||
for key, value in request.session.items():
|
||||
logger.debug("Session: %s %s" % (key, value))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue