Mercurial > kallithea
comparison 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 |
comparison
equal
deleted
inserted
replaced
2521:e4d2271e1193 | 2522:17893d61792a |
---|---|
38 | 38 |
39 log = logging.getLogger(__name__) | 39 log = logging.getLogger(__name__) |
40 | 40 |
41 | 41 |
42 class ChangesetCommentsModel(BaseModel): | 42 class ChangesetCommentsModel(BaseModel): |
43 | |
44 cls = ChangesetComment | |
43 | 45 |
44 def __get_changeset_comment(self, changeset_comment): | 46 def __get_changeset_comment(self, changeset_comment): |
45 return self._get_instance(ChangesetComment, changeset_comment) | 47 return self._get_instance(ChangesetComment, changeset_comment) |
46 | 48 |
47 def __get_pull_request(self, pull_request): | 49 def __get_pull_request(self, pull_request): |