Skip to content

Decorate models instead of their __str__ method#54

Open
flapedriza wants to merge 1 commit intomvpdev:masterfrom
flapedriza:fix-python-2-unicode-decoration
Open

Decorate models instead of their __str__ method#54
flapedriza wants to merge 1 commit intomvpdev:masterfrom
flapedriza:fix-python-2-unicode-decoration

Conversation

@flapedriza
Copy link

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

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