diff --git a/bookwyrm/templates/snippets/status/status_options.html b/bookwyrm/templates/snippets/status/status_options.html index c476bfbf..a76cbc39 100644 --- a/bookwyrm/templates/snippets/status/status_options.html +++ b/bookwyrm/templates/snippets/status/status_options.html @@ -19,7 +19,7 @@ </button> </form> </li> -{% if status.status_type != 'GeneratedNote' %} +{% if status.status_type != 'GeneratedNote' and status.status_type != 'Rating' %} <li role="menuitem"> <form class="dropdown-item pt-0 pb-0" name="delete-{{status.id}}" action="{% url 'redraft' status.id %}" method="post"> {% csrf_token %} diff --git a/bookwyrm/views/status.py b/bookwyrm/views/status.py index b224c1a9..7ab88f28 100644 --- a/bookwyrm/views/status.py +++ b/bookwyrm/views/status.py @@ -104,7 +104,7 @@ class DeleteAndRedraft(View): status = get_object_or_404( models.Status.objects.select_subclasses(), id=status_id ) - if isinstance(status, models.GeneratedNote): + if isinstance(status, (models.GeneratedNote, models.Rating)): return HttpResponseBadRequest() # don't let people redraft other people's statuses