added path for edit author page

parent 8984d01d
from django.urls import path
from .views import (HomeView, BookListView, BookDetailView, AuthorListView, AuthorDetailView,
BookCreateView, AuthorCreateView, BookUpdateView)
BookCreateView, AuthorCreateView, BookUpdateView, AuthorUpdateView)
#url for bookshelf
......@@ -13,6 +13,7 @@ urlpatterns = [
path('authors/', AuthorListView.as_view(), name = 'author-list'),
path('authors/<int:pk>/details', AuthorDetailView.as_view(), name = 'author-details'),
path('authors/add/', AuthorCreateView.as_view(), name="new-author"),
path("authors/<int:pk>/edit", AuthorUpdateView.as_view(), name="update-author"),
]
......
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