From f5e52d6a114a439c4e558ce6145de9b5bfbab5da Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 14 Oct 2021 17:23:54 -0700 Subject: [PATCH] Save updated statuses --- bookwyrm/templates/snippets/create_status/layout.html | 6 +++++- bookwyrm/views/status.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bookwyrm/templates/snippets/create_status/layout.html b/bookwyrm/templates/snippets/create_status/layout.html index d824e270e..43b4cdcaf 100644 --- a/bookwyrm/templates/snippets/create_status/layout.html +++ b/bookwyrm/templates/snippets/create_status/layout.html @@ -17,7 +17,11 @@ reply_parent: the Status object this post will be in reply to, if applicable
diff --git a/bookwyrm/views/status.py b/bookwyrm/views/status.py index 0b6db8995..f1abeda13 100644 --- a/bookwyrm/views/status.py +++ b/bookwyrm/views/status.py @@ -56,7 +56,7 @@ class CreateStatus(View): """create status of whatever type""" if existing_status_id: existing_status = get_object_or_404( - models.Status.select_subclasses(), id=existing_status_id + models.Status.objects.select_subclasses(), id=existing_status_id ) existing_status.raise_not_editable(request.user)