diff options
| -rw-r--r-- | ishtar_common/data_importer.py | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/ishtar_common/data_importer.py b/ishtar_common/data_importer.py index 4eb403c44..67aa402b8 100644 --- a/ishtar_common/data_importer.py +++ b/ishtar_common/data_importer.py @@ -1721,6 +1721,7 @@ class Importer(object):                                  else:                                      dct.pop(k) +                    obj = None                      if self.simulate:                          q = cls.objects.filter(**dct)                          if not q.count(): @@ -1780,7 +1781,7 @@ class Importer(object):                                  new_val = dct['defaults'][k]                                  if new_val is None or new_val == '':                                      continue -                                if k == 'data': +                                if obj and k == 'data':                                      updated_dct[k] = update_data(obj.data,                                                                   new_val)                                  else: | 
