modifies edit book code to allow creation as well
This commit is contained in:
parent
2c2d7c4694
commit
2faf5cea2a
3 changed files with 73 additions and 42 deletions
|
@ -134,6 +134,7 @@ urlpatterns = [
|
|||
re_path(r'^add-description/(?P<book_id>\d+)/?$', views.add_description),
|
||||
re_path(r'^resolve-book/?$', views.resolve_book),
|
||||
re_path(r'^switch-edition/?$', views.switch_edition),
|
||||
re_path(r'^create-book/?$', views.EditBook.as_view()),
|
||||
|
||||
# author
|
||||
re_path(r'^author/(?P<author_id>\d+)(.json)?/?$', views.Author.as_view()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue