From 7014fd98d3eec2f40cc2a574de35bb0c339a94e7 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 21 Jul 2014 19:21:27 +0200 Subject: Colors and orders in short menu - cache mechanism (refs #1562) --- archaeological_finds/models.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'archaeological_finds/models.py') diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py index 592788b88..cdc87ea95 100644 --- a/archaeological_finds/models.py +++ b/archaeological_finds/models.py @@ -24,7 +24,8 @@ from django.db.models import Max from django.utils.translation import ugettext_lazy as _, ugettext from ishtar_common.models import GeneralType, ImageModel, BaseHistorizedItem, \ - LightHistorizedItem, HistoricalRecords, OwnPerms, Source, Person + ShortMenuItem, LightHistorizedItem, HistoricalRecords, OwnPerms, Source, \ + Person from archaeological_operations.models import AdministrativeAct from archaeological_context_records.models import ContextRecord, Dating @@ -141,7 +142,7 @@ class BaseFind(BaseHistorizedItem, OwnPerms): self.context_record.label, lbl) if it]) -class Find(BaseHistorizedItem, ImageModel, OwnPerms): +class Find(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem): TABLE_COLS = ['label', 'material_type', 'dating.period', 'base_finds.context_record.parcel.town', 'base_finds.context_record.operation.year', -- cgit v1.2.3