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 | a27dca4b361b0d2f46a20f9ac2719ef811c093e0 (patch) | |
tree | 5f38e92243a02add2b1e0176585f17f8c4aef7d6 /archaeological_finds | |
parent | 0cc64347e47a0c3117bb4514e6b966f651f552f4 (diff) | |
download | Ishtar-a27dca4b361b0d2f46a20f9ac2719ef811c093e0.tar.bz2 Ishtar-a27dca4b361b0d2f46a20f9ac2719ef811c093e0.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', |