Commit 6dd7abf2 authored by Jan Enzo Salvador's avatar Jan Enzo Salvador

Fixed the name of the path for preventing confusion

parent 3f6ec5f9
...@@ -7,8 +7,8 @@ urlpatterns = [ ...@@ -7,8 +7,8 @@ urlpatterns = [
path('books/<int:pk>/details/', 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>/details/', AuthorsDetailView.as_view(), name='author-details'), path('authors/<int:pk>/details/', AuthorsDetailView.as_view(), name='author-details'),
path('books/add/', BookCreateView.as_view(), name='book-add'), path('books/add/', BookCreateView.as_view(), name='add-book'),
path('authors/add/', AuthorCreateView.as_view(), name='author-add'), path('authors/add/', AuthorCreateView.as_view(), name='add-author'),
path('books/<int:pk>/edit/', BookUpdateView.as_view(), name='book-update'), path('books/<int:pk>/edit/', BookUpdateView.as_view(), name='edit-book'),
path('authors/<pk>/edit/', AuthorUpdateView.as_view(), name='author-update'), path('authors/<pk>/edit/', AuthorUpdateView.as_view(), name='edit-author'),
] ]
\ 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