summaryrefslogtreecommitdiff
path: root/archaeological_finds
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds')
-rw-r--r--archaeological_finds/models_finds.py2
-rw-r--r--archaeological_finds/models_treatments.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index 1f55ee1a0..be6037eaa 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -291,7 +291,7 @@ class Find(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem):
CHECK_DICT = dict(CHECK_CHOICES)
SHOW_URL = 'show-find'
SLUG = 'find'
- TABLE_COLS = ['label', 'material_types', 'datings__period',
+ TABLE_COLS = ['label', 'material_types', 'datings__period__label',
'base_finds__context_record__parcel__town',
'base_finds__context_record__operation__year',
'base_finds__context_record__operation__operation_code',
diff --git a/archaeological_finds/models_treatments.py b/archaeological_finds/models_treatments.py
index 8de10c417..95817fc40 100644
--- a/archaeological_finds/models_treatments.py
+++ b/archaeological_finds/models_treatments.py
@@ -362,6 +362,8 @@ class TreatmentFileType(GeneralType):
verbose_name = _(u"Treatment file type")
verbose_name_plural = _(u"Treatment file types")
ordering = ('label',)
+post_save.connect(post_save_cache, sender=TreatmentFileType)
+post_delete.connect(post_save_cache, sender=TreatmentFileType)
class TreatmentFile(ClosedItem, BaseHistorizedItem, OwnPerms, ValueGetter):