Commit 5822bf48 authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

edited books details html

parent 4c3da610
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<p>{{ books.ISBN }}</p> <p>{{ books.ISBN }}</p>
<p>{{ books.blurb }}</p> <p>{{ books.blurb }}</p>
<button type="button"> <button type="button">
<a href="/bookshelf/books/{{ book.id }}/edit/"> <a href="/bookshelf/books/{{ books.id }}/edit/">
Edit Book Edit Book
</a> </a>
</button><br> </button><br>
......
...@@ -12,8 +12,8 @@ urlpatterns = [ ...@@ -12,8 +12,8 @@ urlpatterns = [
path('authors/<int:id>/edit/', AuthorDetailView.as_view(), name='edit-author'), path('authors/<int:id>/edit/', AuthorDetailView.as_view(), name='edit-author'),
path('books/', BooksView.as_view(), name='books'), path('books/', BooksView.as_view(), name='books'),
path('books/<int:id>/details/', BookDetailView.as_view(), name='books-detail'), path('books/<int:id>/details/', BookDetailView.as_view(), name='books-detail'),
path('books/<int:id>/add/', BookDetailView.as_view(), name='add-books'), path('books/<int:id>/add/', BookDetailView.as_view(), name='add-book'),
path('books/<int:id>/edit/', BookDetailView.as_view(), name='edit-books'), path('books/<int:id>/edit/', BookDetailView.as_view(), name='edit-book'),
] ]
app_name = 'bookshelf' app_name = 'bookshelf'
\ No newline at end of file
Markdown is supported
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