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

update python_2_unicode_compatible import location as part of django 3 upgrade #38

Open
nKandel opened this issue Dec 8, 2020 · 0 comments

Comments

@nKandel
Copy link

nKandel commented Dec 8, 2020

modesl.py has python_2_unicode_compatible import from django.utils. Need to update that as a part of django 3 upgrade.

sol: replace: from django.utils.encoding import python_2_unicode_compatible line with: from six import python_2_unicode_compatible


comment from djagno release note:
Removed private Python 2 compatibility APIs

  • django.utils.encoding.python_2_unicode_compatible() - Alias of six.python_2_unicode_compatible().
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

1 participant