Call is_updated instead of testing it boolean.
This commit is contained in:
parent
09102e0767
commit
3843697c28
@ -59,7 +59,7 @@ class SessionManager(object):
|
||||
return Session()
|
||||
|
||||
def save_session_to_cookie(self, session, response):
|
||||
if not session.is_updated:
|
||||
if not session.is_updated():
|
||||
return
|
||||
elif not session:
|
||||
response.delete_cookie(self.cookie_name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user