mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-18 14:16:45 +00:00
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 %}
|
{% block modal-form-open %}
|
||||||
<form name="shelve" action="{% url 'reading-status' 'want' book.id %}" method="post">
|
<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 %}
|
{% csrf_token %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -83,7 +83,7 @@ class ReadingStatus(View):
|
||||||
form.save()
|
form.save()
|
||||||
else:
|
else:
|
||||||
# uh oh
|
# uh oh
|
||||||
raise Exception("Invalid form")
|
raise Exception(form.errors)
|
||||||
else:
|
else:
|
||||||
privacy = request.POST.get("privacy")
|
privacy = request.POST.get("privacy")
|
||||||
handle_reading_status(request.user, desired_shelf, book, privacy)
|
handle_reading_status(request.user, desired_shelf, book, privacy)
|
||||||
|
|
Loading…
Reference in a new issue