Commit 92a5933c authored by Ysabella Panghulan's avatar Ysabella Panghulan

added book update in urls

parent c8fd077f
from django.urls import path from django.urls import path
from . import views from . import views
from .views import (Homepage, BooksListView, BooksDetailView, BooksCreateView, AuthorListView, AuthorDetailView, AuthorCreateView, AuthorUpdateView) from .views import (Homepage, BooksListView, BooksDetailView, BooksCreateView, BookUpdateView, AuthorListView, AuthorDetailView, AuthorCreateView, AuthorUpdateView)
urlpatterns = [ urlpatterns = [
path('books/<int:pk>/details/edit', BookUpdateView.as_view(), name='edit-book.html'),
path('authors/<int:pk>/details/edit', AuthorUpdateView.as_view(), name='edit-author.html'), path('authors/<int:pk>/details/edit', AuthorUpdateView.as_view(), name='edit-author.html'),
path('home/books/add', BooksCreateView.as_view(), name='add-book'), path('home/books/add', BooksCreateView.as_view(), name='add-book'),
path('home/authors/add', AuthorCreateView.as_view(), name='add-author'), path('home/authors/add', AuthorCreateView.as_view(), name='add-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