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

fix error on django>=3.0 that occurs due to a removing python_2_unicode_compatible from the latest versions #484

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

Sanshain
Copy link

@Sanshain Sanshain commented Jun 22, 2021

python_2_unicode_compatible function was removed in django 3.0. This caused the error

ImportError: cannot import name ‘python_2_unicode_compatible’ from ‘django.utils.encoding’

in models.py.

python version == 3.6
django version == 3.2
django-jet == 1.0.8

Now I set the function stub for all version python with major version==3 with a goal avoid the error

set the stub for `python_2_unicode_compatible` function to fix error `NameError: name 'python_2_unicode_compatible' is not defined` for django versions 3.0 and later
`
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