Mercurial > kallithea
diff rhodecode/model/comment.py @ 2187:b61e540122f2 beta
#415: Adding comment to changeset causes reload
- comments are now added via ajax and doesn't reload the page
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 14 Apr 2012 22:13:07 +0200 |
parents | 989c137f26eb |
children | e5c0f201ca0b 7d517a35b6c9 |
line wrap: on
line diff
--- a/rhodecode/model/comment.py Fri Apr 13 21:12:42 2012 +0200 +++ b/rhodecode/model/comment.py Sat Apr 14 22:13:07 2012 +0200 @@ -142,7 +142,9 @@ .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))