Call is_updated instead of testing it boolean.
authorBrett Smith <brettcsmith@brettcsmith.org>
Mon, 25 Mar 2013 13:20:46 +0000 (09:20 -0400)
committerBrett Smith <brettcsmith@brettcsmith.org>
Mon, 25 Mar 2013 13:20:46 +0000 (09:20 -0400)
mediagoblin/tools/session.py

index da53ddf05a3bc89bb73d57f2ead041acede59dbc..d452b85136bc9a1bea3183bd3e2487ee07a7d2a8 100644 (file)
@@ -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)