aboutsummaryrefslogtreecommitdiff
path: root/rhodecode/model/db.py
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2012-07-06 18:12:14 +0200
committerMarcin Kuzminski <marcin@python-works.com>2012-07-06 18:12:14 +0200
commit557c3de35cd9294f7187206ca26f830d0d8f6a86 (patch)
tree79c159ba429cf5c2b928b32a1e333ff767f533ae /rhodecode/model/db.py
parentd55b566b4369aa6f83b71d5c57756c74998c272a (diff)
cascade delete extra emails on user delete
--HG-- branch : beta
Diffstat (limited to 'rhodecode/model/db.py')
-rwxr-xr-xrhodecode/model/db.py2
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):