diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2012-07-06 18:12:14 +0200 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2012-07-06 18:12:14 +0200 |
commit | 557c3de35cd9294f7187206ca26f830d0d8f6a86 (patch) | |
tree | 79c159ba429cf5c2b928b32a1e333ff767f533ae /rhodecode/model/db.py | |
parent | d55b566b4369aa6f83b71d5c57756c74998c272a (diff) |
cascade delete extra emails on user delete
--HG--
branch : beta
Diffstat (limited to 'rhodecode/model/db.py')
-rwxr-xr-x | rhodecode/model/db.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rhodecode/model/db.py b/rhodecode/model/db.py index fd2fc77f..6effe00c 100755 --- a/rhodecode/model/db.py +++ b/rhodecode/model/db.py @@ -329,6 +329,8 @@ class User(Base, BaseModel): user_created_notifications = relationship('Notification', cascade='all') # comments created by this user user_comments = relationship('ChangesetComment', cascade='all') + #extra emails for this user + user_emails = relationship('UserEmailMap', cascade='all') @hybrid_property def email(self): |