Changeset - 9b0636e9b16b
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-12-06 01:34:45
marcin@python-works.com
fixed issue with cascade deleting of following entries
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/db.py
Show inline comments
 
@@ -336,6 +336,8 @@ class User(Base, BaseModel):
 

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

	
0 comments (0 inline, 0 general)