def login(request, extra_context=None): response = data_site.login(request, extra_context) if "remember_me" in request.POST and settings.SESSION_COOKIE_AGE: request.session.set_expiry(settings.SESSION_COOKIE_AGE) return response
def login(request, extra_context=None): response = data_site.login(request, extra_context) if 'remember_me' in request.POST and settings.SESSION_COOKIE_AGE: request.session.set_expiry(settings.SESSION_COOKIE_AGE) return response