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

Decorate models instead of their __str__ method #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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