Skip to content

Conversation

flapedriza
Copy link

The python_2_unicode_compatible decorator should decorate the class and not the str method.

@@ -156,6 +156,7 @@ class Attribute(models.Model):
change it's datatype.
'''

@python_2_unicode_compatible

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the class Mate has no mthod str, maybe should add "@python_2_unicode_compatible" at its father class Attribute, this works for me

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

Successfully merging this pull request may close these issues.

2 participants