diff options
Diffstat (limited to 'ishtar_common/data_importer.py')
| -rw-r--r-- | ishtar_common/data_importer.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ishtar_common/data_importer.py b/ishtar_common/data_importer.py index 012b2633d..e9b962755 100644 --- a/ishtar_common/data_importer.py +++ b/ishtar_common/data_importer.py @@ -1991,7 +1991,7 @@ class Importer: raise self._get_does_not_exist_in_db_error(cls, dct) dct["defaults"] = defaults.copy() - # manage default values and concatenation + # manage updated, default values and concatenation if not created and not path and self.UNICITY_KEYS and obj is not None: updated_dct = {} for k in dct["defaults"]: @@ -2012,6 +2012,8 @@ class Importer: if k in self.concat_str: sep = self.concat_str[k] updated_dct[k] = val + sep + new_val + else: # TODO: manage conservative + updated_dct[k] = new_val if updated_dct: if self.simulate: self.updated_objects[-1][-1] = updated_dct |
