Commit adee36ce authored by RJC's avatar RJC

added url endpoint for authorupdateview

parent 0e069986
from django.urls import path, re_path from django.urls import path, re_path
from .views import HomePageView, BookListView, BookDetailView, BookUpdateView, BookCreateView,\ from .views import HomePageView, BookListView, BookDetailView, BookUpdateView, BookCreateView,\
AuthorListView, AuthorCreateView, AuthorDetailView AuthorListView, AuthorCreateView, AuthorDetailView, AuthorUpdateView
urlpatterns = [ urlpatterns = [
path('homepage/', HomePageView.as_view()), path('homepage/', HomePageView.as_view()),
...@@ -11,6 +11,7 @@ urlpatterns = [ ...@@ -11,6 +11,7 @@ urlpatterns = [
path('authors/', AuthorListView.as_view()), path('authors/', AuthorListView.as_view()),
path('authors/add/', AuthorCreateView.as_view()), path('authors/add/', AuthorCreateView.as_view()),
path('authors/<int:pk>/details/', AuthorDetailView.as_view(), name='authordetailview'), path('authors/<int:pk>/details/', AuthorDetailView.as_view(), name='authordetailview'),
path('authors/<int:pk>/edit/', AuthorUpdateView.as_view(), name='authorupdateview')
] ]
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