# HG changeset patch # User Marcin Kuzminski # Date 2012-07-06 16:12:14 # Node ID 78f96d7bb23bdb0f16b73462dbf1aace1ffda977 # Parent 6ccf86ebfd4eb02c746397e742c20a90238a54f2 cascade delete extra emails on user delete diff --git a/rhodecode/model/db.py b/rhodecode/model/db.py --- 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):