web: sort users by last_login
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
5c85c3315d
commit
fb20ae7e1a
|
@ -438,6 +438,7 @@ _LOGGING_HANDLER_MAP = {
|
||||||
"kubernetes": "INFO",
|
"kubernetes": "INFO",
|
||||||
"asyncio": "WARNING",
|
"asyncio": "WARNING",
|
||||||
"aioredis": "WARNING",
|
"aioredis": "WARNING",
|
||||||
|
"drf_yasg2.utils": "WARNING",
|
||||||
}
|
}
|
||||||
for handler_name, level in _LOGGING_HANDLER_MAP.items():
|
for handler_name, level in _LOGGING_HANDLER_MAP.items():
|
||||||
# pyright: reportGeneralTypeIssues=false
|
# pyright: reportGeneralTypeIssues=false
|
||||||
|
|
|
@ -30,7 +30,7 @@ export class UserListPage extends TablePage<User> {
|
||||||
}
|
}
|
||||||
|
|
||||||
@property()
|
@property()
|
||||||
order = "username";
|
order = "last_login";
|
||||||
|
|
||||||
apiEndpoint(page: number): Promise<AKResponse<User>> {
|
apiEndpoint(page: number): Promise<AKResponse<User>> {
|
||||||
return new CoreApi(DEFAULT_CONFIG).coreUsersList({
|
return new CoreApi(DEFAULT_CONFIG).coreUsersList({
|
||||||
|
|
Reference in a new issue