From 3f15e4410ed2e43684f1578ed8db63428afeca4c Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 12 Jul 2021 16:17:20 -0700 Subject: [PATCH] Fixes link to edit book --- bookwyrm/templates/book/book.html | 2 +- bookwyrm/urls.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/templates/book/book.html b/bookwyrm/templates/book/book.html index d721d4fd5..9a75cbe94 100644 --- a/bookwyrm/templates/book/book.html +++ b/bookwyrm/templates/book/book.html @@ -47,7 +47,7 @@ {% if user_authenticated and can_edit_book %}
- + {% trans "Edit Book" %} diff --git a/bookwyrm/urls.py b/bookwyrm/urls.py index ea73f0388..7eccfd651 100644 --- a/bookwyrm/urls.py +++ b/bookwyrm/urls.py @@ -295,7 +295,7 @@ urlpatterns = [ views.Book.as_view(), name="book-user-statuses", ), - re_path(r"%s/edit/?$" % BOOK_PATH, views.EditBook.as_view()), + re_path(r"%s/edit/?$" % BOOK_PATH, views.EditBook.as_view(), name="edit-book"), re_path(r"%s/confirm/?$" % BOOK_PATH, views.ConfirmEditBook.as_view()), re_path(r"^create-book/?$", views.EditBook.as_view(), name="create-book"), re_path(r"^create-book/confirm?$", views.ConfirmEditBook.as_view()),