diff options
Diffstat (limited to 'archaeological_warehouse/models.py')
| -rw-r--r-- | archaeological_warehouse/models.py | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/archaeological_warehouse/models.py b/archaeological_warehouse/models.py index 6ea5a7d10..68f5181b7 100644 --- a/archaeological_warehouse/models.py +++ b/archaeological_warehouse/models.py @@ -63,6 +63,8 @@ class Warehouse(Address, DashboardFormItem, OwnPerms):          _(u"External ID is set automatically"), default=False)      TABLE_COLS = ['name', 'warehouse_type'] +    BASE_SEARCH_VECTORS = ['name', 'warehouse_type__label', "external_id", +                           "town", "comment"]      class Meta:          verbose_name = _(u"Warehouse") @@ -261,6 +263,10 @@ class Container(LightHistorizedItem, ImageModel):      TABLE_COLS = ['reference', 'container_type__label', 'cached_location',                    'divisions_lbl', 'old_reference']      IMAGE_PREFIX = 'containers/' +    BASE_SEARCH_VECTORS = ['reference', 'container_type__label', +                           'cached_location'] +    M2M_SEARCH_VECTORS = ['division__reference', +                          'division__division__division__label']      # search parameters      EXTRA_REQUEST_KEYS = { | 
