Changeset - d4e555e32cfb
[Not reviewed]
codereview
0 1 0
Marcin Kuzminski - 13 years ago 2012-06-05 21:36:42
marcin@python-works.com
link changeset comments into db model for cascade deletes
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/db.py
Show inline comments
 
@@ -565,12 +565,13 @@ class Repository(Base, BaseModel):
 
    users_group_to_perm = relationship('UsersGroupRepoToPerm', cascade='all')
 
    stats = relationship('Statistics', cascade='all', uselist=False)
 

	
 
    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,
 
                                   self.repo_name)
 

	
 
    @classmethod
0 comments (0 inline, 0 general)