summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2022-04-06 12:31:21 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-04-06 12:31:21 +0200
commit03de5fdd0772cda2a742b726f823026927f8421a (patch)
tree16c443c36d0c795026aec2cdaa5138bd149d52b8
parent3c1a43364bd9f987e255267084dd25042548623b (diff)
downloadIshtar-03de5fdd0772cda2a742b726f823026927f8421a.tar.bz2
Ishtar-03de5fdd0772cda2a742b726f823026927f8421a.zip
Fix template comparison on empty data
-rw-r--r--archaeological_finds/templates/ishtar/sheet_find.html2
1 files changed, 1 insertions, 1 deletions
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 %}
</div>
{% endif %}
- {% if item.data and item.data != {} %}
+ {% if item.data and item.data|length > 0 %}
<div class="tab-pane fade" id="{{window_id}}-json"
role="tabpanel" aria-labelledby="{{window_id}}-json-tab">
{% include "ishtar/blocks/sheet_json.html" %}