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 import error for django 4.0 #17

Merged
merged 1 commit into from
Jun 18, 2022

Conversation

e8johan
Copy link
Contributor

@e8johan e8johan commented Jun 17, 2022

The force_text function has been deprecated from django 4.0 and is replaced by force_str. To work with both django 4.0 and earlier versions, we try to import force_text, and if that fails, we import force_str and creates an alias function called force_text.

The force_text function has been deprecated from django 4.0 and is replaced by force_str. To work with both django 4.0 and earlier versions, we try to import force_text, and if that fails, we import force_str and creates an alias function called force_text.
@eadwinCode
Copy link
Owner

@e8johan Thanks for fixing this

@eadwinCode eadwinCode merged commit 439f4fd into eadwinCode:master Jun 18, 2022
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