Fakultas Ilmu Komputer UI

Commit e04cba42 authored by Jonathan Christopher Jakub's avatar Jonathan Christopher Jakub
Browse files

[REFACTOR] Use array as duplicate account response

parent 5266437e
Pipeline #43985 passed with stages
in 3 minutes and 20 seconds
...@@ -61,7 +61,7 @@ class AccountViewSet(viewsets.ModelViewSet): ...@@ -61,7 +61,7 @@ class AccountViewSet(viewsets.ModelViewSet):
if User.objects.filter(username=username).exists(): if User.objects.filter(username=username).exists():
return Response( return Response(
{"username" : "User with that username already exists"}, {"username" : ["User with that username already exists"]},
status=status.HTTP_409_CONFLICT status=status.HTTP_409_CONFLICT
) )
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