diff options
author | Étienne Loks <etienne.loks@proxience.com> | 2014-07-21 19:21:27 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@proxience.com> | 2014-07-21 19:21:27 +0200 |
commit | 7014fd98d3eec2f40cc2a574de35bb0c339a94e7 (patch) | |
tree | 5f38e92243a02add2b1e0176585f17f8c4aef7d6 /archaeological_finds | |
parent | a9a1a82a5cc32ea8e5b7a8051de5ff4cd0c6fdc7 (diff) | |
download | Ishtar-7014fd98d3eec2f40cc2a574de35bb0c339a94e7.tar.bz2 Ishtar-7014fd98d3eec2f40cc2a574de35bb0c339a94e7.zip |
Colors and orders in short menu - cache mechanism (refs #1562)
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/models.py | 5 |
1 files changed, 3 insertions, 2 deletions
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', |