diff --git a/bookwyrm/templates/lists/list.html b/bookwyrm/templates/lists/list.html index 8e35416f6..a4c12f46f 100644 --- a/bookwyrm/templates/lists/list.html +++ b/bookwyrm/templates/lists/list.html @@ -97,7 +97,7 @@ - {% include "lists/edit_item_form.html" %} + {% include "lists/edit_item_form.html" with book=item.book %} {% endif %} @@ -112,7 +112,7 @@ - {% include "lists/edit_item_form.html" %} + {% include "lists/edit_item_form.html" with book=item.book %} {% endif %} diff --git a/bookwyrm/views/list/list_item.py b/bookwyrm/views/list/list_item.py index 29cfbee84..5fd65938e 100644 --- a/bookwyrm/views/list/list_item.py +++ b/bookwyrm/views/list/list_item.py @@ -19,4 +19,6 @@ class ListItem(View): form = forms.ListItemForm(request.POST, instance=list_item) if form.is_valid(): form.save() + else: + raise Exception(form.errors) return redirect("list", list_item.book_list.id)