diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-05-25 12:05:19 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-05-25 12:07:40 +0200 |
commit | 9125b8e56ddb6e055f719c3792980e381147613c (patch) | |
tree | 3453fd62c492590fb504f83c9bc38ddb0d496ffe /archaeological_warehouse/models.py | |
parent | 0dad0f23ed0c12047cdf5bdca4cb9a3a276d9add (diff) | |
download | Ishtar-9125b8e56ddb6e055f719c3792980e381147613c.tar.bz2 Ishtar-9125b8e56ddb6e055f719c3792980e381147613c.zip |
Search - Container: search by parent container
Diffstat (limited to 'archaeological_warehouse/models.py')
-rw-r--r-- | archaeological_warehouse/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index b4bf8c5ea..2e9a57f76 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -935,6 +935,10 @@ class Container( "finds__description__iexact", ), "empty": SearchAltName(pgettext_lazy("key for text search", "empty"), "finds"), + "parent": SearchAltName( + pgettext_lazy("key for text search", "parent-container"), + "parent__cached_label__iexact" + ), "contain_containers": SearchAltName( pgettext_lazy("key for text search", "contain-containers"), "children__isnull", |