working on client v2
[osm/LW-UI.git] / sf_user / sessions.py
index df4ed71..a2e1136 100644 (file)
 #   limitations under the License.
 #
 
-from django.contrib.sessions.backends.db import SessionStore as DBStore
-import sf_user
-
-class SessionStore(DBStore):
-    @classmethod
-    def get_model_class(cls):
-        return sf_user.models.CustomSession
-
-    def create_model_instance(self, data):
-        obj = super(SessionStore, self).create_model_instance(data)
-        try:
-            account_id = int(data.get('_auth_user_id'))
-        except (ValueError, TypeError):
-            account_id = None
-        obj.account_id = account_id
-        return obj
\ No newline at end of file
+from django.contrib.sessions.backends.db import SessionStore as DBStore
+import sf_user
+#
+class SessionStore(DBStore):
+    @classmethod
+    def get_model_class(cls):
+        return sf_user.models.CustomSession
+#
+    def create_model_instance(self, data):
+        obj = super(SessionStore, self).create_model_instance(data)
+        try:
+            account_id = int(data.get('_auth_user_id'))
+        except (ValueError, TypeError):
+            account_id = None
+        obj.account_id = account_id
+        return obj
\ No newline at end of file