summaryrefslogtreecommitdiff
path: root/ishtar_common/models_common.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2026-02-11 16:19:18 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2026-02-11 16:19:18 +0100
commit3575cbf88ee71d7610c33719e961e907eb9931d5 (patch)
tree557da1466bdd59d3e781247f28c1676489f0c4ff /ishtar_common/models_common.py
parent9b42c6eef88336b819250904a15945e8f052ad4d (diff)
downloadIshtar-3575cbf88ee71d7610c33719e961e907eb9931d5.tar.bz2
Ishtar-3575cbf88ee71d7610c33719e961e907eb9931d5.zip
🐛 CSV export: fix export of json field when a json field is used as search (refs #6602)
Diffstat (limited to 'ishtar_common/models_common.py')
-rw-r--r--ishtar_common/models_common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ishtar_common/models_common.py b/ishtar_common/models_common.py
index b6386cfd5..9dfb355e9 100644
--- a/ishtar_common/models_common.py
+++ b/ishtar_common/models_common.py
@@ -928,7 +928,9 @@ class FullSearch(models.Model):
@classmethod
def get_default_search_form(cls):
# DEFAULT_SEARCH_FORM is used to get the form when exporting tables
+ # necessary to manage correctly search with json fields
if not cls.DEFAULT_SEARCH_FORM:
+ print(f"**WARNING** DEFAULT_SEARCH_FORM not specified for {cls}")
return
form = getattr(import_module(cls.DEFAULT_SEARCH_FORM[0]),
cls.DEFAULT_SEARCH_FORM[1])