Show More
@@ -121,9 +121,9 b' class AdminUsersView(BaseAppView):' | |||||
121 |
|
121 | |||
122 | sort_col = getattr(User, order_by, None) |
|
122 | sort_col = getattr(User, order_by, None) | |
123 | if sort_col and order_dir == 'asc': |
|
123 | if sort_col and order_dir == 'asc': | |
124 | base_q = base_q.order_by(sort_col.asc()) |
|
124 | base_q = base_q.order_by(sort_col.asc().nullslast()) | |
125 | elif sort_col: |
|
125 | elif sort_col: | |
126 | base_q = base_q.order_by(sort_col.desc()) |
|
126 | base_q = base_q.order_by(sort_col.desc().nullslast()) | |
127 |
|
127 | |||
128 | base_q = base_q.offset(start).limit(limit) |
|
128 | base_q = base_q.offset(start).limit(limit) | |
129 | users_list = base_q.all() |
|
129 | users_list = base_q.all() |
General Comments 0
You need to be logged in to leave comments.
Login now