[功能] 新增公告管理模块,对GET users API轻微修改,筛管理员添加超级管理员包含

This commit is contained in:
sxw
2015-08-08 17:09:15 +08:00
parent c3fcb119c4
commit 4578426f99
4 changed files with 252 additions and 1 deletions

View File

@@ -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)