Mercurial > kallithea
comparison rhodecode/model/db.py @ 1325:89ff3e30470f beta
fixes #188 - relationship delete of repo_to_perm entry on user removal
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 12 May 2011 18:03:25 +0200 |
parents | a7a772ea7b95 |
children | a04fe5986109 |
comparison
equal
deleted
inserted
replaced
1324:e272be3244f0 | 1325:89ff3e30470f |
---|---|
125 user_log = relationship('UserLog', cascade='all') | 125 user_log = relationship('UserLog', cascade='all') |
126 user_perms = relationship('UserToPerm', primaryjoin="User.user_id==UserToPerm.user_id", cascade='all') | 126 user_perms = relationship('UserToPerm', primaryjoin="User.user_id==UserToPerm.user_id", cascade='all') |
127 | 127 |
128 repositories = relationship('Repository') | 128 repositories = relationship('Repository') |
129 user_followers = relationship('UserFollowing', primaryjoin='UserFollowing.follows_user_id==User.user_id', cascade='all') | 129 user_followers = relationship('UserFollowing', primaryjoin='UserFollowing.follows_user_id==User.user_id', cascade='all') |
130 repo_to_perm = relationship('RepoToPerm', primaryjoin='RepoToPerm.user_id==User.user_id', cascade='all') | |
130 | 131 |
131 group_member = relationship('UsersGroupMember', cascade='all') | 132 group_member = relationship('UsersGroupMember', cascade='all') |
132 | 133 |
133 @property | 134 @property |
134 def full_contact(self): | 135 def full_contact(self): |