From 98b14598d4e429cc50a25a0ba9a959cd205667f4 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(-) (limited to 'archaeological_finds/templates') 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