[功能] 新增公告管理模块,对GET users API轻微修改,筛管理员添加超级管理员包含
This commit is contained in:
@@ -129,7 +129,7 @@ class UserAPIView(APIView):
|
||||
admin_type = request.GET.get("admin_type", None)
|
||||
if admin_type:
|
||||
try:
|
||||
user = user.filter(admin_type=int(admin_type))
|
||||
user = user.filter(admin_type__gte=int(admin_type))
|
||||
except ValueError:
|
||||
return error_response(u"参数错误")
|
||||
keyword = request.GET.get("keyword", None)
|
||||
|
||||
Reference in New Issue
Block a user