Skip to content

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

Open
Sanshain wants to merge 3 commits intogeex-arts:devfrom
Sanshain:dev
Open

fix error on django>=3.0 that occurs due to a removing python_2_unicode_compatible from the latest versions#484
Sanshain wants to merge 3 commits intogeex-arts:devfrom
Sanshain:dev

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

Comments