aboutsummaryrefslogtreecommitdiff
path: root/rhodecode/model/comment.py
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2012-07-20 20:25:33 +0200
committerMarcin Kuzminski <marcin@python-works.com>2012-07-20 20:25:33 +0200
commit7d73bb5edbd4c853a6de6a1c003ba70978f6ed00 (patch)
tree8e942ddee0e33d8ae7a665751911b56bdab8fbad /rhodecode/model/comment.py
parent5cec7357563c5c905051c1577b27a8a897a09304 (diff)
Added created_on column to changeset comments for proper ordering.
--HG-- branch : beta
Diffstat (limited to 'rhodecode/model/comment.py')
-rw-r--r--rhodecode/model/comment.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rhodecode/model/comment.py b/rhodecode/model/comment.py
index 3ee45959..a7520b3a 100644
--- a/rhodecode/model/comment.py
+++ b/rhodecode/model/comment.py
@@ -198,6 +198,7 @@ class ChangesetCommentsModel(BaseModel):
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):