Commit 76ba223c authored by Julia Anishka's avatar Julia Anishka

fixed typos in book_details.html

parent f02679a0
from django.urls import path
from . import views
from .views import BooksListView, BooksDetailView
from .views import BooksListView, BooksDetailView, AuthorsListView, AuthorsDetailView
urlpatterns = [
path('home', views.homepage_view, name='home'),
path('books', BooksListView.as_view(), name='books-list'),
path('books/<pk>/details', BooksDetailView.as_view(), name='books-detail'),
path('authors', AuthorsListView.as_view(), name='authors-list'),
path('authors/<pk>/details', AuthorsDetailView.as_view(), name='authors-detail')
]
app_name = 'bookshelf'
\ No newline at end of file
......@@ -20,3 +20,9 @@ class BooksListView(ListView):
class BooksDetailView(DetailView):
model = Books
class AuthorsListView(ListView):
model = Author
class AuthorsDetailView(DetailView):
model = 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