X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=sf_user%2Fsessions.py;h=a2e1136f4a5e1ddd4cb9233b4dc1e928142d2669;hb=refs%2Fchanges%2F60%2F6360%2F1;hp=df4ed7102cd23913a172d62689f57ef868467015;hpb=fb37bca4b7e8178c65df2f1496afe372c1d55e78;p=osm%2FLW-UI.git diff --git a/sf_user/sessions.py b/sf_user/sessions.py index df4ed71..a2e1136 100644 --- a/sf_user/sessions.py +++ b/sf_user/sessions.py @@ -14,19 +14,19 @@ # 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