forked from mirrors/bookwyrm
Fixes want to read status slug
This commit is contained in:
parent
899f91a811
commit
b991510c03
2 changed files with 2 additions and 2 deletions
|
@ -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 %}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue