changeset 2392:d4e555e32cfb codereview

link changeset comments into db model for cascade deletes
author Marcin Kuzminski <marcin@python-works.com>
date Tue, 05 Jun 2012 21:36:42 +0200
parents 91fae60bf2b6
children b94eac50ec4d
files rhodecode/model/db.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/model/db.py	Tue Jun 05 21:22:23 2012 +0200
+++ b/rhodecode/model/db.py	Tue Jun 05 21:36:42 2012 +0200
@@ -568,9 +568,10 @@
     followers = relationship('UserFollowing', primaryjoin='UserFollowing.follows_repo_id==Repository.repo_id', cascade='all')
 
     logs = relationship('UserLog')
+    comments = relationship('ChangesetComment')
 
     def __unicode__(self):
-        return u"<%s('%s:%s')>" % (self.__class__.__name__,self.repo_id,
+        return u"<%s('%s:%s')>" % (self.__class__.__name__, self.repo_id,
                                    self.repo_name)
 
     @classmethod