fix wrapped orm error with i18nfield
This commit is contained in:
parent
505ea466d2
commit
fa450084dc
1 changed files with 1 additions and 1 deletions
|
@ -244,7 +244,7 @@ class ChangedObject(models.Model):
|
|||
continue
|
||||
|
||||
elif not field.is_relation:
|
||||
value = getattr(instance, field.name)
|
||||
value = getattr(instance, field.attname)
|
||||
if isinstance(field, I18nField):
|
||||
for lang, subvalue in value.items():
|
||||
self.updated_fields['%s__i18n__%s' % (field.name, lang)] = subvalue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue