diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-12-03 14:23:08 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-12-03 14:23:08 +0100 |
commit | 281b6adca6ebe5df5a2bf064cfd30e19d2cf623c (patch) | |
tree | 550dbc370daebcbc3612fda7938c24953a18e02b /archaeological_finds | |
parent | caa17af48916f075183e85a0e24dc4a9f919fa95 (diff) | |
download | Ishtar-281b6adca6ebe5df5a2bf064cfd30e19d2cf623c.tar.bz2 Ishtar-281b6adca6ebe5df5a2bf064cfd30e19d2cf623c.zip |
Fix base finds configuration
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/models_finds.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/archaeological_finds/models_finds.py b/archaeological_finds/models_finds.py index 3ee7d12c7..d4cb9fc2f 100644 --- a/archaeological_finds/models_finds.py +++ b/archaeological_finds/models_finds.py @@ -1852,6 +1852,9 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, OwnPerms, for base_find in self.base_finds.filter( context_record__operation__pk__isnull=False).all(): modified = False + if self.label and not base_find.label: + base_find.label = self.label + modified = True if not base_find.index: modified = base_find.generate_index() short_id = base_find.short_id() @@ -1862,6 +1865,8 @@ class Find(BulkUpdatedItem, ValueGetter, BaseHistorizedItem, OwnPerms, if base_find.cache_complete_id != complete_id: base_find.cache_complete_id = complete_id modified = True + if base_find.update_external_id(): + modified = True if modified: base_find.skip_history_when_saving = True base_find._cached_label_checked = False |