Commit 91047623 authored by RJC's avatar RJC

added url endpoint for bookupdateview

parent 09649b6c
from django.urls import path, re_path
from .views import HomePageView, BookListView, BookDetailView, BookCreateView,\
from .views import HomePageView, BookListView, BookDetailView, BookUpdateView, BookCreateView,\
AuthorListView, AuthorCreateView, AuthorDetailView
urlpatterns = [
......@@ -7,6 +7,7 @@ urlpatterns = [
path('books/', BookListView.as_view()),
path('books/add/', BookCreateView.as_view()),
path('books/<int:pk>/details/', BookDetailView.as_view(), name='bookdetailview'),
path('books/<int:pk>/edit/', BookUpdateView.as_view(), name='bookupdateview'),
path('authors/', AuthorListView.as_view()),
path('authors/add/', AuthorCreateView.as_view()),
path('authors/<int:pk>/details/', AuthorDetailView.as_view(), name='authordetailview'),
......
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