[Python-modules-commits] [python-social-auth] 03/89: Support all kind of data type (like uuid) of User.id on Pyramid

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


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

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

commit 1194e6f7370285739c1c220673c4cb2b6ecc6657
Author: Chun-Jung Lee <github.tsod at tsod.idv.tw>
Date:   Thu Oct 22 03:34:18 2015 +0800

    Support all kind of data type (like uuid) of User.id on Pyramid
---
 social/apps/pyramid_app/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/social/apps/pyramid_app/models.py b/social/apps/pyramid_app/models.py
index c38bf00..2d70e06 100644
--- a/social/apps/pyramid_app/models.py
+++ b/social/apps/pyramid_app/models.py
@@ -31,7 +31,7 @@ def init_social(config, Base, session):
     class UserSocialAuth(_AppSession, Base, SQLAlchemyUserMixin):
         """Social Auth association model"""
         uid = Column(String(UID_LENGTH))
-        user_id = Column(Integer, ForeignKey(User.id),
+        user_id = Column(User.id.type, ForeignKey(User.id),
                          nullable=False, index=True)
         user = relationship(User, backref=backref('social_auth',
                                                   lazy='dynamic'))

-- 
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