From: Radek Czajka Date: Mon, 26 Sep 2022 10:55:03 +0000 (+0200) Subject: Author publish button. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/610f37f94856721da69493d9fae346b977d75dfb?ds=inline Author publish button. --- diff --git a/src/catalogue/templates/admin/catalogue/author/change_form.html b/src/catalogue/templates/admin/catalogue/author/change_form.html new file mode 100644 index 00000000..9b9cb4a8 --- /dev/null +++ b/src/catalogue/templates/admin/catalogue/author/change_form.html @@ -0,0 +1,14 @@ +{% extends "admin/change_form.html" %} + +{% block object-tools-items %} + {% if change and original.slug %} +
  • +
    + + {% csrf_token %} + +
    +
  • + {% endif %} + {{ block.super }} +{% endblock %} diff --git a/src/catalogue/templates/catalogue/author_description.html b/src/catalogue/templates/catalogue/author_description.html index 934e4b6c..09505918 100644 --- a/src/catalogue/templates/catalogue/author_description.html +++ b/src/catalogue/templates/catalogue/author_description.html @@ -44,4 +44,4 @@ -{{ obj.description }} +{{ obj.description|safe }}