summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_finds.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-11-30 10:33:26 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-11-30 10:33:26 +0100
commitad30c4117d07fb0b61e38fe2dd2bea3a977a5d83 (patch)
tree02491e71be127fefc2dc4539d5ee58b6a757e4fb /archaeological_finds/models_finds.py
parent9384f39f8fd63f1e004d3abe75cb737c6651e3ed (diff)
parentf4466b9107ab7849db1ef8c092aadb5bb90331a3 (diff)
downloadIshtar-ad30c4117d07fb0b61e38fe2dd2bea3a977a5d83.tar.bz2
Ishtar-ad30c4117d07fb0b61e38fe2dd2bea3a977a5d83.zip
Merge branch 'master' into develop
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r--archaeological_finds/models_finds.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index 4c8855d1d..2b782c614 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -1148,6 +1148,18 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel,
def localisation_6(self):
return self.get_localisation(5)
+ @property
+ def localisation_7(self):
+ return self.get_localisation(6)
+
+ @property
+ def localisation_8(self):
+ return self.get_localisation(7)
+
+ @property
+ def localisation_9(self):
+ return self.get_localisation(8)
+
def set_localisation(self, place, context, value):
if not self.container:
if not value:
@@ -1186,6 +1198,18 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, ImageModel,
def set_localisation_6(self, context, value):
return self.set_localisation(5, context, value)
+ @post_importer_action
+ def set_localisation_7(self, context, value):
+ return self.set_localisation(6, context, value)
+
+ @post_importer_action
+ def set_localisation_8(self, context, value):
+ return self.set_localisation(7, context, value)
+
+ @post_importer_action
+ def set_localisation_9(self, context, value):
+ return self.set_localisation(8, context, value)
+
def generate_index(self):
"""
Generate index based on operation or context record (based on