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-02 13:30:50 +0200
commit986d6c2c372df1bf1962533e4a24080da4d79c8a (patch)
treea49f4ebe21c1c2aec1201fa70cb2b0825613f64e /ishtar_common/models.py
parentb78f0d10fd202ed9a1c4d3e508390d4329032b29 (diff)
downloadIshtar-986d6c2c372df1bf1962533e4a24080da4d79c8a.tar.bz2
Ishtar-986d6c2c372df1bf1962533e4a24080da4d79c8a.zip
✨ general management of filter on types - filter qualification types for actors
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 []