# HG changeset patch # User Marcin Kuzminski # Date 2012-07-11 00:11:45 # Node ID a52cee88d612e1272e4f5824799164cb1015cb29 # Parent c1cac08d7062372f51a3d7ca111a8442f3a6685e fixed sorting in recipients query of notifications diff --git a/rhodecode/model/db.py b/rhodecode/model/db.py --- a/rhodecode/model/db.py +++ b/rhodecode/model/db.py @@ -1608,7 +1608,7 @@ class Notification(Base, BaseModel): 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):