mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: 用户列表根据创建时间倒序
This commit is contained in:
parent
436d0b7483
commit
aeaae692d8
|
|
@ -553,6 +553,7 @@ class UserManageSerializer(serializers.Serializer):
|
|||
if email_or_username is not None:
|
||||
query_set = query_set.filter(
|
||||
Q(username__contains=email_or_username) | Q(email__contains=email_or_username))
|
||||
query_set = query_set.order_by("-create_time")
|
||||
return query_set
|
||||
|
||||
def list(self, with_valid=True):
|
||||
|
|
|
|||
Loading…
Reference in New Issue