From a684d86d15f5f1715ab49d6f9228ada016aaaf40 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 17 Mar 2022 08:02:59 -0700 Subject: [PATCH] Fixes subjects in add edition view --- bookwyrm/forms/books.py | 1 - bookwyrm/templates/book/editions/editions.html | 13 ++++++++++++- bookwyrm/views/books/edit_book.py | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/bookwyrm/forms/books.py b/bookwyrm/forms/books.py index 20f307fa..d96ad067 100644 --- a/bookwyrm/forms/books.py +++ b/bookwyrm/forms/books.py @@ -86,7 +86,6 @@ class EditionForm(CustomForm): "ASIN": forms.TextInput(attrs={"aria-describedby": "desc_ASIN"}), } - class EditionFromWorkForm(CustomForm): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) diff --git a/bookwyrm/templates/book/editions/editions.html b/bookwyrm/templates/book/editions/editions.html index 5d674d47..e15e7a74 100644 --- a/bookwyrm/templates/book/editions/editions.html +++ b/bookwyrm/templates/book/editions/editions.html @@ -57,7 +57,18 @@
{% csrf_token %} - {{ work_form }} + {{ work_form.title }} + {{ work_form.subtitle }} + {{ work_form.authors }} + {{ work_form.description }} + {{ work_form.languages }} + {{ work_form.series }} + {{ work_form.cover }} + {{ work_form.first_published_date }} + {% for subject in work.subjects %} + + {% endfor %} +