Commit 947c7f15 authored by Ysabella Panghulan's avatar Ysabella Panghulan

added author update in urls

parent 3742bac9
from django.urls import path
from . import views
from .views import (Homepage, BooksListView, BooksDetailView, BooksCreateView, AuthorListView, AuthorDetailView, AuthorCreateView)
from .views import (Homepage, BooksListView, BooksDetailView, BooksCreateView, AuthorListView, AuthorDetailView, AuthorCreateView, AuthorUpdateView)
urlpatterns = [
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/authors/add', AuthorCreateView.as_view(), name='add-author'),
path('authors/', AuthorListView.as_view(), name='authors'),
......
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