forked from mirrors/bookwyrm
Save updated statuses
This commit is contained in:
parent
066f14ca84
commit
f5e52d6a11
2 changed files with 6 additions and 2 deletions
|
@ -17,7 +17,11 @@ reply_parent: the Status object this post will be in reply to, if applicable
|
|||
<form
|
||||
class="is-flex-grow-1{% if not no_script %} submit-status{% endif %}"
|
||||
name="{{ type }}"
|
||||
action="{% url "create-status" type draft.id %}"
|
||||
{% if draft %}
|
||||
action="{% url 'create-status' type draft.id %}"
|
||||
{% else %}
|
||||
action="{% url 'create-status' type %}"
|
||||
{% endif %}
|
||||
method="post"
|
||||
id="form_{{ type }}_{{ book.id }}{{ reply_parent.id }}"
|
||||
>
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue