From 03de5fdd0772cda2a742b726f823026927f8421a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 6 Apr 2022 12:31:21 +0200 Subject: Fix template comparison on empty data --- archaeological_finds/templates/ishtar/sheet_find.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index a1a8f41e5..95829eb19 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -481,7 +481,7 @@ {% dynamic_table_document finds_docs 'documents' 'finds' item.pk '' output %} {% endif %} - {% if item.data and item.data != {} %} + {% if item.data and item.data|length > 0 %}
{% include "ishtar/blocks/sheet_json.html" %} -- cgit v1.2.3