summaryrefslogtreecommitdiff
path: root/archaeological_finds/templates/ishtar/sheet_find.html
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
commit98b14598d4e429cc50a25a0ba9a959cd205667f4 (patch)
tree16c443c36d0c795026aec2cdaa5138bd149d52b8 /archaeological_finds/templates/ishtar/sheet_find.html
parentd4375557e5f94bc4b0bbe72348f6599972ff0f65 (diff)
downloadIshtar-98b14598d4e429cc50a25a0ba9a959cd205667f4.tar.bz2
Ishtar-98b14598d4e429cc50a25a0ba9a959cd205667f4.zip
Fix template comparison on empty data
Diffstat (limited to 'archaeological_finds/templates/ishtar/sheet_find.html')
-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" %}