Skip to content

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

Sanshain added 3 commits June 22, 2021 14:43
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