Fakultas Ilmu Komputer UI

Commit c8ab001a authored by Bimo Iman Smartadi's avatar Bimo Iman Smartadi
Browse files

[REFACTOR] deleted commented line

parent 1d6f9bc6
Pipeline #40899 passed with stages
in 4 minutes and 45 seconds
......@@ -29,7 +29,6 @@ def user_list(request):
"name": user.user.last_name,
"email": user.user.email,
"phone_number": user.phone_number})
#serializer = UserSerializer(user_list, many=True)
return JsonResponse(json_return, safe=False)
else:
return JsonResponse({'response' : 'try get request instead'}, status = 400)
......@@ -63,4 +62,4 @@ def register_user(request):
return JsonResponse({'response' : 'User created', 'email':email, 'name':name}, status = 201)
except KeyError as e:
return JsonResponse({'response':'bad request. {} key needed'.format(str(e))}, status = 500)
# Create your views here.
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment