[Python-modules-commits] [python-social-auth] 10/71: Save extra_data on login

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:14:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

debacle pushed a commit to tag v0.2.14
in repository python-social-auth.

commit 79bc6ffd7dea17bba363a1727d2fc67701bdb60b
Author: Maarten van Schaik <maarten at byte.nl>
Date:   Tue Sep 29 16:44:27 2015 +0200

    Save extra_data on login
---
 social/storage/sqlalchemy_orm.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/social/storage/sqlalchemy_orm.py b/social/storage/sqlalchemy_orm.py
index 71010f7..621bf4c 100644
--- a/social/storage/sqlalchemy_orm.py
+++ b/social/storage/sqlalchemy_orm.py
@@ -12,6 +12,7 @@ from sqlalchemy import Column, Integer, String
 from sqlalchemy.exc import IntegrityError
 from sqlalchemy.types import PickleType, Text
 from sqlalchemy.schema import UniqueConstraint
+from sqlalchemy.ext.mutable import MutableDict
 
 from social.storage.base import UserMixin, AssociationMixin, NonceMixin, \
                                 CodeMixin, BaseStorage
@@ -66,7 +67,7 @@ class SQLAlchemyUserMixin(SQLAlchemyMixin, UserMixin):
     __table_args__ = (UniqueConstraint('provider', 'uid'),)
     id = Column(Integer, primary_key=True)
     provider = Column(String(32))
-    extra_data = Column(JSONType)
+    extra_data = Column(MutableDict.as_mutable(JSONType))
     uid = None
     user_id = None
     user = None

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git



More information about the Python-modules-commits mailing list