Closed dfolland closed 9 years ago
https://github.com/django/django/blob/stable/1.6.x/django/utils/encoding.py
The comments state to "apply this decorator the the class.".
I've found that if you apply to the __str() method you get this error:
@python_2_unicode_compatible cannot be applied to str because it doesn't define str().
I came across the same the same error, indeed I fixed the error applying the decorator to the class ;-)
https://github.com/django/django/blob/stable/1.6.x/django/utils/encoding.py
The comments state to "apply this decorator the the class.".
I've found that if you apply to the __str() method you get this error:
@python_2_unicode_compatible cannot be applied to str because it doesn't define str().