update close button because of django 4.2
This commit is contained in:
@@ -2,6 +2,9 @@
|
||||
{% load i18n admin_urls %}
|
||||
|
||||
{% block submit-row %}
|
||||
{% if not show_close %}<a href="{% url opts|admin_urlname:'changelist' %}" class="closelink">{% translate 'Close' %}</a>{% endif %}
|
||||
{% if not show_close %}
|
||||
{% url opts|admin_urlname:'changelist' as changelist_url %}
|
||||
<a href="{% add_preserved_filters changelist_url %}" class="closelink">{% translate 'Close' %}</a>
|
||||
{% endif %}
|
||||
{{ block.super }}
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user