Commit 79a34693 authored by Jan Enzo Salvador's avatar Jan Enzo Salvador

Fixed the url for books' details and authors' details

parent 4c01cc2c
...@@ -4,7 +4,7 @@ from .views import HomepageView, BooksListView, BooksDetailView, AuthorsListView ...@@ -4,7 +4,7 @@ from .views import HomepageView, BooksListView, BooksDetailView, AuthorsListView
urlpatterns = [ urlpatterns = [
path('home/', HomepageView, name='home'), path('home/', HomepageView, name='home'),
path('books/', BooksListView.as_view(), name='books-list'), path('books/', BooksListView.as_view(), name='books-list'),
path('books/<int:pk>', BooksDetailView.as_view(), name='book-details'), path('books/<int:pk>/details/', BooksDetailView.as_view(), name='book-details'),
path('authors/', AuthorsListView.as_view(), name='authors-list'), path('authors/', AuthorsListView.as_view(), name='authors-list'),
path('authors/<int:pk>', AuthorsDetailView.as_view(), name='author-details'), path('authors/<int:pk>/details/', AuthorsDetailView.as_view(), name='author-details'),
] ]
\ 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