Mercurial > kallithea
diff rhodecode/model/comment.py @ 2522:17893d61792a beta
Added associated classes into child models
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 01 Jul 2012 12:44:54 +0200 |
parents | 8eab81115660 |
children | 1c2ba03c42b4 |
line wrap: on
line diff
--- a/rhodecode/model/comment.py Sun Jul 01 12:40:00 2012 +0200 +++ b/rhodecode/model/comment.py Sun Jul 01 12:44:54 2012 +0200 @@ -41,6 +41,8 @@ class ChangesetCommentsModel(BaseModel): + cls = ChangesetComment + def __get_changeset_comment(self, changeset_comment): return self._get_instance(ChangesetComment, changeset_comment)