summaryrefslogtreecommitdiff
path: root/archaeological_context_records/models.py
diff options
context:
space:
mode:
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)