Skip to content

Commit

Permalink
fix: variable
Browse files Browse the repository at this point in the history
  • Loading branch information
iqbaldwitama committed Mar 5, 2024
1 parent 0472441 commit 4473d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial/tutorial-5.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ Pada bagian ini, kamu akan membuat fungsi pada *views* untuk menambahkan buku ba
description = request.POST.get("description")
user = request.user

new_book = Book(name=name, price=price, description=description, user=user)
new_book = Book(name=name, page=page, description=description, user=user)
new_book.save()

return HttpResponse(b"CREATED", status=201)
Expand Down

0 comments on commit 4473d05

Please sign in to comment.