diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-11-30 10:33:52 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-11-30 10:33:52 +0100 |
commit | cc98c28e68f437fb1f2a9bcb7149017c2e7ef157 (patch) | |
tree | 7e4a8fc9e7f06e560aed97598969d1fe7879bf15 /archaeological_finds | |
parent | 68827073b683032447135a11c0ddc20101cb1554 (diff) | |
parent | 556cdc351a2db86a6ecb38491ff8cce01f6fa62c (diff) | |
download | Ishtar-cc98c28e68f437fb1f2a9bcb7149017c2e7ef157.tar.bz2 Ishtar-cc98c28e68f437fb1f2a9bcb7149017c2e7ef157.zip |
Merge branch 'develop' into develop-bootstrap
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/models_finds.py | 24 |
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 |