# HG changeset patch # User Marcin Kuzminski # Date 2017-04-12 20:48:21 # Node ID da0b6987cae09f9f4e9af5f2e8ec6103cd0a0299 # Parent e363bbc7c9962220e8f58511a30918e2c37f5c47 admin-users: remove nullslast() as it's generally not mysql compatible. - fixes #5277 diff --git a/rhodecode/apps/admin/views/users.py b/rhodecode/apps/admin/views/users.py --- a/rhodecode/apps/admin/views/users.py +++ b/rhodecode/apps/admin/views/users.py @@ -126,9 +126,9 @@ class AdminUsersView(BaseAppView): sort_col = getattr(User, order_by, None) if sort_col and order_dir == 'asc': - base_q = base_q.order_by(sort_col.asc().nullslast()) + base_q = base_q.order_by(sort_col.asc()) elif sort_col: - base_q = base_q.order_by(sort_col.desc().nullslast()) + base_q = base_q.order_by(sort_col.desc()) base_q = base_q.offset(start).limit(limit) users_list = base_q.all()