From 15d7179cae91adb58b44e886dda14fa27b414f04 Mon Sep 17 00:00:00 2001 From: sxw Date: Wed, 9 Dec 2015 20:23:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80get=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- group/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/group/views.py b/group/views.py index 527486e..29f0a49 100644 --- a/group/views.py +++ b/group/views.py @@ -133,8 +133,8 @@ class GroupMemberAdminAPIView(APIView, GroupAPIViewBase): group = self.get_group(request, group_id) except Group.DoesNotExist: return error_response(u"小组不存在") - adminOnly = request.GET.get("adminOnly", None) - if adminOnly: + admin_only = request.GET.get("admin_only", None) + if admin_only: members = AdminGroupRelation.objects.filter(group=group) else: members = UserGroupRelation.objects.filter(group=group)