Mercurial > kallithea
diff rhodecode/model/comment.py @ 2639:f3e039e4dc49 beta
Added created_on column to changeset comments for proper ordering.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 20 Jul 2012 20:25:33 +0200 |
parents | 1c2ba03c42b4 |
children | 0a623ec24b62 |
line wrap: on
line diff
--- a/rhodecode/model/comment.py Fri Jul 20 19:59:45 2012 +0200 +++ b/rhodecode/model/comment.py Fri Jul 20 20:25:33 2012 +0200 @@ -198,6 +198,7 @@ q = q.filter(ChangesetComment.pull_request == pull_request) else: raise Exception('Please specify revision or pull_request') + q = q.order_by(ChangesetComment.created_on) return q.all() def get_inline_comments(self, repo_id, revision=None, pull_request=None):