diff options
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 |
commit | 98b14598d4e429cc50a25a0ba9a959cd205667f4 (patch) | |
tree | 16c443c36d0c795026aec2cdaa5138bd149d52b8 /archaeological_finds/templates | |
parent | d4375557e5f94bc4b0bbe72348f6599972ff0f65 (diff) | |
download | Ishtar-98b14598d4e429cc50a25a0ba9a959cd205667f4.tar.bz2 Ishtar-98b14598d4e429cc50a25a0ba9a959cd205667f4.zip |
Fix template comparison on empty data
Diffstat (limited to 'archaeological_finds/templates')
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 2 |
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" %} |