From 05f8bd0d3c500e91585253ad9e5c393a11aba58b Mon Sep 17 00:00:00 2001 From: Joeri de Ruiter Date: Wed, 13 Sep 2023 09:46:31 +0200 Subject: [PATCH] parent_work was not always included in work when needed --- bookwyrm/templates/book/edit/edit_book_form.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/templates/book/edit/edit_book_form.html b/bookwyrm/templates/book/edit/edit_book_form.html index 23cc6d097d..4cc3965e73 100644 --- a/bookwyrm/templates/book/edit/edit_book_form.html +++ b/bookwyrm/templates/book/edit/edit_book_form.html @@ -10,7 +10,7 @@ {% csrf_token %} -{% if form.parent_work %} +{% if book.parent_work.id or form.parent_work %} {% endif %}