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 | 03de5fdd0772cda2a742b726f823026927f8421a (patch) | |
tree | 16c443c36d0c795026aec2cdaa5138bd149d52b8 | |
parent | 3c1a43364bd9f987e255267084dd25042548623b (diff) | |
download | Ishtar-03de5fdd0772cda2a742b726f823026927f8421a.tar.bz2 Ishtar-03de5fdd0772cda2a742b726f823026927f8421a.zip |
Fix template comparison on empty data
-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" %} |