mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Stop creating an empty session on first request
This commit is contained in:
@@ -79,14 +79,6 @@ class SessionMiddleware(BaseSessionMiddleware):
|
||||
a custom domain.
|
||||
"""
|
||||
|
||||
def process_request(self, request):
|
||||
super().process_request(request)
|
||||
|
||||
if not request.session.session_key:
|
||||
# We need to create session even if we do not yet store something there, because we need the session
|
||||
# key for e.g. saving the user's cart
|
||||
request.session.create()
|
||||
|
||||
def process_response(self, request, response):
|
||||
try:
|
||||
accessed = request.session.accessed
|
||||
|
||||
Reference in New Issue
Block a user