mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
replaced str with unicode in diff
This commit is contained in:
parent
c22bd6b61e
commit
ce8deb9415
1 changed files with 2 additions and 2 deletions
|
|
@ -23,8 +23,8 @@ def model_instance_diff(old, new):
|
|||
fields = set()
|
||||
|
||||
for field in fields:
|
||||
old_value = str(getattr(old, field.name, None))
|
||||
new_value = str(getattr(new, field.name, None))
|
||||
old_value = unicode(getattr(old, field.name, None))
|
||||
new_value = unicode(getattr(new, field.name, None))
|
||||
|
||||
if old_value != new_value:
|
||||
diff[field.name] = (old_value, new_value)
|
||||
|
|
|
|||
Loading…
Reference in a new issue