Display error messages in edit book form

This commit is contained in:
Mouse Reeve
2020-11-24 13:37:35 -08:00
parent 9bbedc5d9a
commit 1fd498c306
2 changed files with 72 additions and 20 deletions

View File

@ -240,7 +240,6 @@ def edit_book(request, book_id):
'book': book,
'form': form
}
print(form.errors)
return TemplateResponse(request, 'edit_book.html', data)
form.save()