mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-12-29 16:41:56 +00:00
refine var name
This commit is contained in:
parent
f91970f75a
commit
1fc19eba21
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user