Skip to content

Commit

Permalink
🐛 Add modified new value, old value
Browse files Browse the repository at this point in the history
  • Loading branch information
LePetitTim committed Jan 19, 2023
1 parent 7623264 commit 2e19ee5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions geotrek/common/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ def parse_translation_field(self, dst, src, val):
if old_value != val_default_language:
self.set_value(dst_field_lang, src, val_default_language)
modified = True
if new_value != old_value:
modified = True

return modified

def parse_field(self, row, dst, src, updated, non_field):
Expand Down

0 comments on commit 2e19ee5

Please sign in to comment.