diff options
Diffstat (limited to 'archaeological_warehouse/models.py')
| -rw-r--r-- | archaeological_warehouse/models.py | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index 08d773a4f..0df76875f 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -472,8 +472,18 @@ class Container(DocumentItem, LightHistorizedItem, QRCodeItem, GeoItem,              SearchAltName(                  pgettext_lazy("key for text search", u"find-description"),                  'finds__description__iexact'), +        'empty': SearchAltName( +            pgettext_lazy("key for text search", u"empty"), +            'finds' +        ), +        'no_finds': SearchAltName( +            pgettext_lazy("key for text search", u"no-associated-finds"), +            'finds_ref' +        ),      } +    REVERSED_MANY_COUNTED_FIELDS = ['finds', 'finds_ref'] +      ALT_NAMES.update(LightHistorizedItem.ALT_NAMES)      DYNAMIC_REQUESTS = { | 
