summaryrefslogtreecommitdiff
path: root/archaeological_finds/models_finds.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-12-03 14:18:03 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-12-03 14:18:03 +0100
commit79f909a50190a879a04d853a4fd0e89e3bf3642d (patch)
treeb8a8826296a858cc700420cc5ecc4751f706c6f1 /archaeological_finds/models_finds.py
parent0f4989c03f931297a488c75fc6f268e1113bae42 (diff)
downloadIshtar-79f909a50190a879a04d853a4fd0e89e3bf3642d.tar.bz2
Ishtar-79f909a50190a879a04d853a4fd0e89e3bf3642d.zip
Import: set localisation only on post save
Diffstat (limited to 'archaeological_finds/models_finds.py')
-rw-r--r--archaeological_finds/models_finds.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py
index 36a1c08c7..c98f72f2a 100644
--- a/archaeological_finds/models_finds.py
+++ b/archaeological_finds/models_finds.py
@@ -2285,74 +2285,92 @@ class Find(BulkUpdatedItem, ValueGetter, DocumentItem, BaseHistorizedItem,
@post_importer_action
def set_reference_localisation_1(self, context, value):
return self.set_localisation(0, context, value, is_ref=True)
+ set_reference_localisation_1.post_save = True
@post_importer_action
def set_reference_localisation_2(self, context, value):
return self.set_localisation(1, context, value, is_ref=True)
+ set_reference_localisation_2.post_save = True
@post_importer_action
def set_reference_localisation_3(self, context, value):
return self.set_localisation(2, context, value, is_ref=True)
+ set_reference_localisation_3.post_save = True
@post_importer_action
def set_reference_localisation_4(self, context, value):
return self.set_localisation(3, context, value, is_ref=True)
+ set_reference_localisation_4.post_save = True
@post_importer_action
def set_reference_localisation_5(self, context, value):
return self.set_localisation(4, context, value, is_ref=True)
+ set_reference_localisation_5.post_save = True
@post_importer_action
def set_reference_localisation_6(self, context, value):
return self.set_localisation(5, context, value, is_ref=True)
+ set_reference_localisation_6.post_save = True
@post_importer_action
def set_reference_localisation_7(self, context, value):
return self.set_localisation(6, context, value, is_ref=True)
+ set_reference_localisation_7.post_save = True
@post_importer_action
def set_reference_localisation_8(self, context, value):
return self.set_localisation(7, context, value, is_ref=True)
+ set_reference_localisation_8.post_save = True
@post_importer_action
def set_reference_localisation_9(self, context, value):
return self.set_localisation(8, context, value, is_ref=True)
+ set_reference_localisation_9.post_save = True
@post_importer_action
def set_localisation_1(self, context, value):
return self.set_localisation(0, context, value)
+ set_localisation_1.post_save = True
@post_importer_action
def set_localisation_2(self, context, value):
return self.set_localisation(1, context, value)
+ set_localisation_2.post_save = True
@post_importer_action
def set_localisation_3(self, context, value):
return self.set_localisation(2, context, value)
+ set_localisation_3.post_save = True
@post_importer_action
def set_localisation_4(self, context, value):
return self.set_localisation(3, context, value)
+ set_localisation_4.post_save = True
@post_importer_action
def set_localisation_5(self, context, value):
return self.set_localisation(4, context, value)
+ set_localisation_5.post_save = True
@post_importer_action
def set_localisation_6(self, context, value):
return self.set_localisation(5, context, value)
+ set_localisation_6.post_save = True
@post_importer_action
def set_localisation_7(self, context, value):
return self.set_localisation(6, context, value)
+ set_localisation_7.post_save = True
@post_importer_action
def set_localisation_8(self, context, value):
return self.set_localisation(7, context, value)
+ set_localisation_8.post_save = True
@post_importer_action
def set_localisation_9(self, context, value):
return self.set_localisation(8, context, value)
+ set_localisation_9.post_save = True
def generate_index(self):
"""