Fixed wrong template names

parent dc8d2f8e
...@@ -44,7 +44,7 @@ class AddBookView(CreateView): ...@@ -44,7 +44,7 @@ class AddBookView(CreateView):
class EditBookView(UpdateView): class EditBookView(UpdateView):
model = Books model = Books
form_class = BooksForm form_class = BooksForm
template_name = 'bookshelf/add-book.html' template_name = 'bookshelf/edit-book.html'
class AddAuthorView(CreateView): class AddAuthorView(CreateView):
...@@ -56,4 +56,4 @@ class AddAuthorView(CreateView): ...@@ -56,4 +56,4 @@ class AddAuthorView(CreateView):
class EditAuthorView(UpdateView): class EditAuthorView(UpdateView):
model = Author model = Author
form_class = AuthorForm form_class = AuthorForm
template_name = 'bookshelf/add-author.html' template_name = 'bookshelf/edit-author.html'
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