diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2012-04-14 22:13:07 +0200 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2012-04-14 22:13:07 +0200 |
commit | f5067a809925e0164d0a8c2a8b92964ed892e219 (patch) | |
tree | e9b75bc8272138de9dda09e43a32a1943fa3a93a /rhodecode/model/comment.py | |
parent | 0569058675239e8899494ab17283ca5e5945dfd6 (diff) |
#415: Adding comment to changeset causes reload
- comments are now added via ajax and doesn't reload the page
--HG--
branch : beta
Diffstat (limited to 'rhodecode/model/comment.py')
-rw-r--r-- | rhodecode/model/comment.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rhodecode/model/comment.py b/rhodecode/model/comment.py index 21e40de8..707345fb 100644 --- a/rhodecode/model/comment.py +++ b/rhodecode/model/comment.py @@ -142,7 +142,9 @@ class ChangesetCommentsModel(BaseModel): .filter(ChangesetComment.repo_id == repo_id)\ .filter(ChangesetComment.revision == revision)\ .filter(ChangesetComment.line_no != None)\ - .filter(ChangesetComment.f_path != None).all() + .filter(ChangesetComment.f_path != None)\ + .order_by(ChangesetComment.comment_id.asc())\ + .all() paths = defaultdict(lambda: defaultdict(list)) |