diff options
Diffstat (limited to 'ishtar_common/data_importer.py')
-rw-r--r-- | ishtar_common/data_importer.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ishtar_common/data_importer.py b/ishtar_common/data_importer.py index af8cc461e..5df845571 100644 --- a/ishtar_common/data_importer.py +++ b/ishtar_common/data_importer.py @@ -35,7 +35,7 @@ from django.db.models import Q from django.template.defaultfilters import slugify from django.utils.translation import ugettext_lazy as _ -from ishtar_common.utils import get_all_field_names +from ishtar_common.utils import get_all_field_names, update_data NEW_LINE_BREAK = '#####@@@#####' @@ -1774,7 +1774,11 @@ class Importer(object): new_val = dct['defaults'][k] if new_val is None or new_val == '': continue - updated_dct[k] = new_val + if k == 'data': + updated_dct[k] = update_data(obj.data, + new_val) + else: + updated_dct[k] = new_val if updated_dct: if self.simulate: self.updated_objects[-1][-1] = updated_dct |