Fixes edit book page

This commit is contained in:
Mouse Reeve 2022-03-18 07:28:07 -07:00
parent 576d0ee189
commit 713391f468

View file

@ -178,7 +178,7 @@
<div class="box"> <div class="box">
{% if book.authors.exists %} {% if book.authors.exists %}
{# preserve authors if the book is unsaved #} {# preserve authors if the book is unsaved #}
<input type="hidden" name="authors" value="{% for author in book.authors %}{{ author.id }},{% endfor %}"> <input type="hidden" name="authors" value="{% for author in book.authors.all %}{{ author.id }},{% endfor %}">
<fieldset> <fieldset>
{% for author in book.authors.all %} {% for author in book.authors.all %}
<div class="is-flex is-justify-content-space-between"> <div class="is-flex is-justify-content-space-between">