From 7a75e26a3865099576f334881625677b38963ed2 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 31 Oct 2017 12:26:56 +0100 Subject: Finds table: fix town label --- archaeological_finds/models_finds.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 639323f89..65850d4dc 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -543,7 +543,7 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel, CHECK_DICT = dict(CHECK_CHOICES) SHOW_URL = 'show-find' SLUG = 'find' - TABLE_COLS = ['label', 'base_finds__context_record__parcel__town', + TABLE_COLS = ['label', 'base_finds__context_record__parcel__town__name', 'base_finds__context_record__operation__common_name', 'base_finds__context_record__parcel', 'base_finds__context_record__label', @@ -562,7 +562,7 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel, 'container__cached_label', 'container__cahed_location', 'description', - 'base_finds__context_record__parcel__town', + 'base_finds__context_record__parcel__town__name', 'base_finds__context_record__parcel', ] COL_LABELS = { 'base_finds__context_record__label': _(u"Context record"), @@ -571,7 +571,7 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel, 'base_finds__context_record__operation__code_patriarche': _( u"Operation (code)" ), - 'base_finds__context_record__parcel__town': _(u"Town"), + 'base_finds__context_record__parcel__town__name': _(u"Town"), 'base_finds__context_record__operation__common_name': _( u"Operation (name)" ), -- cgit v1.2.3