diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-10-01 18:50:02 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-10-01 18:50:02 +0200 |
commit | 05b9acf3048eaefa89e57011968c220fd8c2c2a7 (patch) | |
tree | fadcd9d09ac5fa97db0a28ccabdbb2ecbffaa831 /archaeological_finds | |
parent | b33503364d3a4784607871e3771973bafa00aac2 (diff) | |
download | Ishtar-05b9acf3048eaefa89e57011968c220fd8c2c2a7.tar.bz2 Ishtar-05b9acf3048eaefa89e57011968c220fd8c2c2a7.zip |
Manage column customization on custom app
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/models_finds.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index ea111f0d2..51da262b8 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -38,7 +38,7 @@ from ishtar_common.alternative_configs import ALTERNATE_CONFIGS from ishtar_common.models import Document, GeneralType, \ HierarchicalType, BaseHistorizedItem, ShortMenuItem, LightHistorizedItem, \ HistoricalRecords, OwnPerms, Person, Basket, post_save_cache, \ - ValueGetter, get_current_profile + ValueGetter, get_current_profile, IshtarSiteProfile from archaeological_operations.models import AdministrativeAct, Operation from archaeological_context_records.models import ContextRecord, Dating @@ -638,6 +638,8 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, OwnPerms, 'base_finds__context_record__operation__common_name': _( u"Operation (name)" ), + 'base_finds__context_record__archaeological_site__name': + IshtarSiteProfile.get_default_site_label, 'base_finds__context_record__parcel': _(u"Parcel"), 'base_finds__batch':_(u"Batch"), 'base_finds__comment': _(u"Base find - Comment"), @@ -699,6 +701,8 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, OwnPerms, 'base_finds__context_record__operation__code_patriarche', 'base_finds__context_record__town__areas': 'base_finds__context_record__town__areas__pk', + 'base_finds__context_record__archaeological_site__name': + 'base_finds__context_record__archaeological_site__name', 'datings__period': 'datings__period__pk', 'base_finds__find__description': 'base_finds__find__description__icontains', |