grantmcconnaughey / django-field-history

A Django app to track changes to model fields.

Repository from Github https://github.comgrantmcconnaughey/django-field-historyRepository from Github https://github.comgrantmcconnaughey/django-field-history

UnicodeDecodeError with Python 2.7 and unicode string

slyapustin opened this issue · comments

This does not work, if object representation have type unicode:

return '{} field history for {}'.format(self.field_name, self.object)

fix for python 2.7:

return u'{} field history for {}'.format(self.field_name, self.object)

https://github.com/grantmcconnaughey/django-field-history/blob/master/field_history/models.py#L31

Same problem here:
Python 2.7.10, Django 1.11.5
I tried to fixed it (PR on going), but it seems that it fails with Python 3.2