From f804dfc0a48130eefe7048938c20d7d19a69caaf Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 22 Apr 2025 15:16:08 +0200 Subject: 🐛 fix table export with json fields in search (refs #6292) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 1ac95dd7e..ffe078efd 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2656,6 +2656,9 @@ class Organization(Address, Merge, OwnPerms, BaseGenderedType, ValueGetter, Main "museum_museofile_id__iexact", ), } + + DEFAULT_SEARCH_FORM = ("ishtar_common.forms_common", "OrganizationSelect") + QA_EDIT = QuickAction( url="organization-qa-bulk-update", icon_class="fa fa-pencil", @@ -2937,6 +2940,9 @@ class Person(Address, Merge, OwnPerms, ValueGetter, MainItem): "profiles__profile_type__label__iexact", ), } + + DEFAULT_SEARCH_FORM = ("ishtar_common.forms_common", "PersonSelect") + QA_EDIT = QuickAction( url="person-qa-bulk-update", icon_class="fa fa-pencil", @@ -4498,6 +4504,8 @@ class Document( } ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES) + DEFAULT_SEARCH_FORM = ("ishtar_common.forms_common", "DocumentSelect") + # search parameters REVERSED_BOOL_FIELDS = ["image__isnull", "associated_file__isnull"] DATED_FIELDS = BaseHistorizedItem.DATED_FIELDS + [ -- cgit v1.2.3