diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-01-21 18:36:38 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-01-21 18:36:38 +0100 |
commit | aefd99c66f530481b6e89fbdbaa9f12368b00607 (patch) | |
tree | 45f1c3f2dc953b61141fa23392696bdaefbddb30 /archaeological_warehouse/models.py | |
parent | 031a53a8bf4c9abc0958b9a2c8666a79d1f5fadf (diff) | |
download | Ishtar-aefd99c66f530481b6e89fbdbaa9f12368b00607.tar.bz2 Ishtar-aefd99c66f530481b6e89fbdbaa9f12368b00607.zip |
Adapt container and warehous sheets - container forms
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 d6c33583f..1aad71111 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'] 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 = { |