diff --git a/bookwyrm/templates/snippets/status/status_options.html b/bookwyrm/templates/snippets/status/status_options.html index 92e1ab43..854d4779 100644 --- a/bookwyrm/templates/snippets/status/status_options.html +++ b/bookwyrm/templates/snippets/status/status_options.html @@ -20,12 +20,9 @@ {% if status.status_type != 'GeneratedNote' and status.status_type != 'Rating' %} {% endif %} {% else %} diff --git a/bookwyrm/views/status.py b/bookwyrm/views/status.py index 71f8c1b7..13e51b1b 100644 --- a/bookwyrm/views/status.py +++ b/bookwyrm/views/status.py @@ -28,11 +28,13 @@ class EditStatus(View): def get(self, request, status_id): # pylint: disable=unused-argument """load the edit panel""" - status = get_object_or_404(models.Status.select_subclasses(), id=status_id) + status = get_object_or_404(models.Status.objects.select_subclasses(), id=status_id) status.raise_not_editable(request.user) data = { - "status": status, + "type": status.status_type.lower(), + "book": getattr(status, "book", None), + "draft": status, } return TemplateResponse(request, "compose.html", data)