Mercurial > kallithea
changeset 3067:9b0636e9b16b beta
fixed issue with cascade deleting of following entries
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 06 Dec 2012 01:34:45 +0100 |
parents | 5d580e9bc730 |
children | 44827c84dc66 |
files | rhodecode/model/db.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/model/db.py Thu Dec 06 01:20:57 2012 +0100 +++ b/rhodecode/model/db.py Thu Dec 06 01:34:45 2012 +0100 @@ -336,6 +336,8 @@ repositories = relationship('Repository') user_followers = relationship('UserFollowing', primaryjoin='UserFollowing.follows_user_id==User.user_id', cascade='all') + followings = relationship('UserFollowing', primaryjoin='UserFollowing.user_id==User.user_id', cascade='all') + repo_to_perm = relationship('UserRepoToPerm', primaryjoin='UserRepoToPerm.user_id==User.user_id', cascade='all') repo_group_to_perm = relationship('UserRepoGroupToPerm', primaryjoin='UserRepoGroupToPerm.user_id==User.user_id', cascade='all')