refine var name

This commit is contained in:
virusdefender 2017-01-24 23:56:18 +08:00
parent f91970f75a
commit 1fc19eba21

View File

@ -72,7 +72,7 @@ class UserAdminAPI(APIView):
"""
User list api / Get user by id
"""
user_id = request.GET.get("user_id")
user_id = request.GET.get("id")
if user_id:
try:
user = User.objects.get(id=user_id)