##// END OF EJS Templates
admin-users: remove nullslast() as it's generally not mysql compatible....
marcink -
r1628:da0b6987 default
parent child Browse files
Show More
@@ -126,9 +126,9 b' class AdminUsersView(BaseAppView):'
126
126
127 sort_col = getattr(User, order_by, None)
127 sort_col = getattr(User, order_by, None)
128 if sort_col and order_dir == 'asc':
128 if sort_col and order_dir == 'asc':
129 base_q = base_q.order_by(sort_col.asc().nullslast())
129 base_q = base_q.order_by(sort_col.asc())
130 elif sort_col:
130 elif sort_col:
131 base_q = base_q.order_by(sort_col.desc().nullslast())
131 base_q = base_q.order_by(sort_col.desc())
132
132
133 base_q = base_q.offset(start).limit(limit)
133 base_q = base_q.offset(start).limit(limit)
134 users_list = base_q.all()
134 users_list = base_q.all()
General Comments 0
You need to be logged in to leave comments. Login now