From fc24549ebdc04b084480502c2ddec82fdd107c40 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 3 Jun 2022 16:26:02 +0200 Subject: Import delete: do not crash when no SLUG is available for an attached item --- ishtar_common/templates/ishtar/import_delete.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar_common') diff --git a/ishtar_common/templates/ishtar/import_delete.html b/ishtar_common/templates/ishtar/import_delete.html index 4844d89d8..db3df8fe4 100644 --- a/ishtar_common/templates/ishtar/import_delete.html +++ b/ishtar_common/templates/ishtar/import_delete.html @@ -28,12 +28,14 @@ {% else %}
{% endifchanged %} + {% if imported.SLUG %} {% url "show-"|add:imported.SLUG imported.pk "" as current_url %} {% if current_url %} {% endif %} + {% endif %} {{ imported }} {% endfor %} -- cgit v1.2.3