Commit b846171e authored by Gabriel G. Garrero's avatar Gabriel G. Garrero

Fixed a typo in urls.py for the edit author function

parent 3067da52
from django.urls import path from django.urls import path
from .views import ( from .views import (
home, BooksListView, BooksDetailView, BooksCreateView, BooksUpdateView, home, BooksListView, BooksDetailView, BooksCreateView, BooksUpdateView,
AuthorListView, AuthorDetailView, AuthorCreateView, AuthorCreateView AuthorListView, AuthorDetailView, AuthorCreateView, AuthorUpdateView
) )
urlpatterns = [ urlpatterns = [
...@@ -13,7 +13,7 @@ urlpatterns = [ ...@@ -13,7 +13,7 @@ urlpatterns = [
path('authors/', AuthorListView.as_view(), name = 'author-list'), path('authors/', AuthorListView.as_view(), name = 'author-list'),
path('authors/<int:pk>/details', AuthorDetailView.as_view(), name = 'author-details'), path('authors/<int:pk>/details', AuthorDetailView.as_view(), name = 'author-details'),
path('authors/add', AuthorCreateView.as_view(), name = 'add-author'), path('authors/add', AuthorCreateView.as_view(), name = 'add-author'),
path('authors/<int:pk>/edit', AuthorCreateView.as_view(), name = 'edit-author'), path('authors/<int:pk>/edit', AuthorUpdateView.as_view(), name = 'edit-author'),
] ]
app_name = "bookshelf" app_name = "bookshelf"
\ No newline at end of file
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