Fixes want to read status slug

This commit is contained in:
Mouse Reeve 2021-08-16 15:00:35 -07:00
parent 899f91a811
commit b991510c03
2 changed files with 2 additions and 2 deletions

View file

@ -10,6 +10,6 @@ Want to Read "<em>{{ book_title }}</em>"
{% block modal-form-open %}
<form name="shelve" action="{% url 'reading-status' 'want' book.id %}" method="post">
<input type="hidden" name="reading_status" value="toRead">
<input type="hidden" name="reading_status" value="to-read">
{% csrf_token %}
{% endblock %}

View file

@ -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)