diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-05 14:34:12 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-05 14:34:12 +0200 |
commit | 664cab418cda08d1e133d4d30b70332a893375af (patch) | |
tree | f6cfdf2c4e3630507ee3877e99f4edf8d18c2648 /archaeological_operations/models.py | |
parent | 9388be1bc4be2470a5601d1b683c8c26bde984aa (diff) | |
download | Ishtar-664cab418cda08d1e133d4d30b70332a893375af.tar.bz2 Ishtar-664cab418cda08d1e133d4d30b70332a893375af.zip |
Site search: areas criteria
Diffstat (limited to 'archaeological_operations/models.py')
-rw-r--r-- | archaeological_operations/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/archaeological_operations/models.py b/archaeological_operations/models.py index d34b2f60a..9f1e29e5e 100644 --- a/archaeological_operations/models.py +++ b/archaeological_operations/models.py @@ -167,6 +167,10 @@ class ArchaeologicalSite(DocumentItem, BaseHistorizedItem, QRCodeItem, pgettext_lazy("key for text search", u"town"), 'towns__cached_label__iexact' ), + 'towns__areas': SearchAltName( + pgettext_lazy("key for text search", u"area"), + 'towns__areas__label__iexact' + ), 'comment': SearchAltName( pgettext_lazy("key for text search", u"comment"), 'comment__iexact' |