summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2026-04-01 12:37:31 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2026-04-01 12:37:31 +0200
commit1c4f2610c5003e24dc2a695290e54b1c931abdc2 (patch)
tree464359ef144196cf1d8da29de1c9f4f113bb099d /ishtar_common/models.py
parent32f5c7fc925e0dce5dfcca35383dd52ae766bfee (diff)
downloadIshtar-develop-5.0-BPC.tar.bz2
Ishtar-develop-5.0-BPC.zip
✨ general management of filter on types - filter qualification types for actorsdevelop-5.0-BPC
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index e52d210a6..d9923b04d 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -4702,6 +4702,10 @@ class QualifiedBiographicalNoteType(OrderedHierarchicalType):
ordering = ["order", "label"]
ADMIN_SECTION = _("Directory")
+ @classmethod
+ def _set_limit(cls, dct, limit):
+ dct["model__in"] = limit
+
post_save.connect(post_save_cache, sender=QualifiedBiographicalNoteType)
post_delete.connect(post_save_cache, sender=QualifiedBiographicalNoteType)
@@ -6200,6 +6204,7 @@ class OperationType(GeneralType):
empty_first=True,
default=None,
initial=None,
+ limit=None
):
dct = dct or {}
exclude = exclude or []