We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
python_2_unicode_compatible
modesl.py has python_2_unicode_compatible import from django.utils. Need to update that as a part of django 3 upgrade.
django.utils
sol: replace: from django.utils.encoding import python_2_unicode_compatible line with: from six import python_2_unicode_compatible
from django.utils.encoding import python_2_unicode_compatible
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()
six.python_2_unicode_compatible()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
modesl.py has
python_2_unicode_compatible
import fromdjango.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 ofsix.python_2_unicode_compatible()
.The text was updated successfully, but these errors were encountered: