From b991510c03f8db27d872260379314eaf2ef0c2b8 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 16 Aug 2021 15:00:35 -0700 Subject: [PATCH] Fixes want to read status slug --- .../templates/snippets/reading_modals/want_to_read_modal.html | 2 +- bookwyrm/views/reading.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/templates/snippets/reading_modals/want_to_read_modal.html b/bookwyrm/templates/snippets/reading_modals/want_to_read_modal.html index 9263fe326..1213b18e9 100644 --- a/bookwyrm/templates/snippets/reading_modals/want_to_read_modal.html +++ b/bookwyrm/templates/snippets/reading_modals/want_to_read_modal.html @@ -10,6 +10,6 @@ Want to Read "{{ book_title }}" {% block modal-form-open %}
- + {% csrf_token %} {% endblock %} diff --git a/bookwyrm/views/reading.py b/bookwyrm/views/reading.py index 390662650..9100e1d43 100644 --- a/bookwyrm/views/reading.py +++ b/bookwyrm/views/reading.py @@ -83,7 +83,7 @@ class ReadingStatus(View): form.save() else: # uh oh - raise Exception("Invalid form") + raise Exception(form.errors) else: privacy = request.POST.get("privacy") handle_reading_status(request.user, desired_shelf, book, privacy)