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

fixed typos in book_details.html

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