summaryrefslogtreecommitdiff
path: root/archaeological_context_records/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2024-09-17 09:59:33 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2024-09-17 10:04:54 +0200
commit0e22d62ec2cacfe501bdb7a4f3afde9081366d55 (patch)
treee4028524c840613a9e81eec3510c51f670ccb44e /archaeological_context_records/models.py
parent034e7bb7af624f92e1a3a2f27370ba8e671f05ac (diff)
downloadIshtar-0e22d62ec2cacfe501bdb7a4f3afde9081366d55.tar.bz2
Ishtar-0e22d62ec2cacfe501bdb7a4f3afde9081366d55.zip
✨ context record search: manage new fields (refs #6024)
Diffstat (limited to 'archaeological_context_records/models.py')
-rw-r--r--archaeological_context_records/models.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/archaeological_context_records/models.py b/archaeological_context_records/models.py
index 062535e04..a10c78552 100644
--- a/archaeological_context_records/models.py
+++ b/archaeological_context_records/models.py
@@ -712,6 +712,26 @@ class ContextRecord(
pgettext_lazy("key for text search", "comment"),
"comment__iexact"
),
+ "structures": SearchAltName(
+ pgettext_lazy("key for text search", "structure"),
+ "structures__label__iexact",
+ ),
+ "textures": SearchAltName(
+ pgettext_lazy("key for text search", "texture"),
+ "textures__label__iexact",
+ ),
+ "inclusions": SearchAltName(
+ pgettext_lazy("key for text search", "inclusion"),
+ "inclusions__label__iexact",
+ ),
+ "colors": SearchAltName(
+ pgettext_lazy("key for text search", "color"),
+ "colors__label__iexact",
+ ),
+ "details_on_color": SearchAltName(
+ pgettext_lazy("key for text search", "color-details"),
+ "details_on_color__iexact"
+ ),
}
ALT_NAMES.update(BaseHistorizedItem.ALT_NAMES)
ALT_NAMES.update(DocumentItem.ALT_NAMES)