Mercurial > public > src > rhodecode
changeset 2687:a52cee88d612 beta
fixed sorting in recipients query of notifications
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 11 Jul 2012 00:11:45 +0200 |
parents | c1cac08d7062 |
children | a5e32ed7f790 |
files | rhodecode/model/db.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/model/db.py Tue Jul 10 23:40:47 2012 +0200 +++ b/rhodecode/model/db.py Wed Jul 11 00:11:45 2012 +0200 @@ -1608,7 +1608,7 @@ def recipients(self): return [x.user for x in UserNotification.query()\ .filter(UserNotification.notification == self)\ - .order_by(UserNotification.user).all()] + .order_by(UserNotification.user_id.asc()).all()] @classmethod def create(cls, created_by, subject, body, recipients, type_=None):