Skip to content

Commit

Permalink
request.body to requst .data
Browse files Browse the repository at this point in the history
  • Loading branch information
xinnie-ca committed Feb 24, 2024
1 parent baf5005 commit 7c5fbf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lvlgg_backend/account/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def post(self, request):
create unsuccessful
200 - successful created a user
"""
data = json.loads(request.body.decode("utf-8"))
data = request.data
username = data.get("username")
password = data.get("password")
firstname = data.get("firstname")
Expand Down

0 comments on commit 7c5fbf1

Please sign in to comment.