This commit is contained in:
Jakub Roztocil 2012-09-07 12:48:59 +02:00
parent 316e3f45a9
commit 66bdbc3745
2 changed files with 6 additions and 5 deletions

View File

@ -52,7 +52,8 @@ def get_response(name, request_kwargs, read_only=False):
except Exception:
raise
else:
if not read_only or session.is_new:
# Existing sessions with `read_only=True` don't get updated.
if session.is_new or not read_only:
session.cookies = rsession.cookies
session.save()
return response