Commits

Marcin Kuzminski committed 6a2c0cf

Cascade delete comments and notifications when removing user.

  • Participants
  • Parent commits a27e4d4

Comments (0)

Files changed (1)

File rhodecode/model/db.py

 
     group_member = relationship('UsersGroupMember', cascade='all')
 
-    notifications = relationship('UserNotification',)
+    notifications = relationship('UserNotification', cascade='all')
+    # notifications assigned to this user
+    user_created_notifications = relationship('Notification', cascade='all')
+    # comments created by this user
+    user_comments = relationship('ChangesetComment', cascade='all')
 
     @hybrid_property
     def email(self):