From 610f37f94856721da69493d9fae346b977d75dfb Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 26 Sep 2022 12:55:03 +0200 Subject: [PATCH 1/1] Author publish button. --- .../admin/catalogue/author/change_form.html | 14 ++++++++++++++ .../templates/catalogue/author_description.html | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/catalogue/templates/admin/catalogue/author/change_form.html 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 }} -- 2.20.1