parent_work was not always included in work when needed

This commit is contained in:
Joeri de Ruiter 2023-09-13 09:46:31 +02:00
parent a09b2ab45c
commit 05f8bd0d3c

View file

@ -10,7 +10,7 @@
{% csrf_token %}
<input type="hidden" name="last_edited_by" value="{{ request.user.id }}">
{% if form.parent_work %}
{% if book.parent_work.id or form.parent_work %}
<input type="hidden" name="parent_work" value="{% firstof book.parent_work.id form.parent_work %}">
{% endif %}