From a6d2c43a6c0bb0883b51bf19260eb0b1913ed1f1 Mon Sep 17 00:00:00 2001 From: Patrick Mayr Date: Wed, 21 Jun 2023 12:50:39 +0000 Subject: [PATCH] update close button because of django 4.2 --- fet2020/templates/admin/submit_line.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fet2020/templates/admin/submit_line.html b/fet2020/templates/admin/submit_line.html index 9e1c0af8..b697100e 100644 --- a/fet2020/templates/admin/submit_line.html +++ b/fet2020/templates/admin/submit_line.html @@ -2,6 +2,9 @@ {% load i18n admin_urls %} {% block submit-row %} - {% if not show_close %}{% translate 'Close' %}{% endif %} + {% if not show_close %} + {% url opts|admin_urlname:'changelist' as changelist_url %} + {% translate 'Close' %} + {% endif %} {{ block.super }} {% endblock %}