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

Update utils django 4 compatible #60

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

Conversation

Domchap90
Copy link
Contributor

Changes Summary

force_text -> force_str
affects rich_text plugin

@@ -1,3 +1,6 @@
## 1.2.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be 1.1 instead?

@@ -9,7 +9,7 @@
from django.db import models
from django.forms import Media, Textarea
from django.forms.utils import flatatt
from django.utils.encoding import force_text
from django.utils.encoding import force_str
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you know if force_str is available in django<4?

It could be worth having this is a "if django version <4 then use force_text, otherwise use force_ste"

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