Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError with Python 2.7 and unicode string #15

Open
slyapustin opened this issue Oct 31, 2016 · 1 comment
Open

UnicodeDecodeError with Python 2.7 and unicode string #15

slyapustin opened this issue Oct 31, 2016 · 1 comment

Comments

@slyapustin
Copy link

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

@soloiago
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants