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

Version upgrade? #6

Open
hvitis opened this issue Mar 11, 2019 · 3 comments
Open

Version upgrade? #6

hvitis opened this issue Mar 11, 2019 · 3 comments

Comments

@hvitis
Copy link

hvitis commented Mar 11, 2019

Hey I'm trying to use it with Django 2.1 and I get this:

\lib\site-packages\django_sorting_field\fields.py", line 4, in
from django.utils.text import force_text
ImportError: cannot import name 'force_text' from 'django.utils.text'

Needs to be changed to:
from django.utils.encoding import force_text

@evanfitzking
Copy link

+1 for visibility, please look into this

@JsseL
Copy link
Contributor

JsseL commented Apr 4, 2019

Master branch seems to have that fixed already (see this). You could try:

  1. Using unreleased latest commit from master branch or
  2. Fork it or
  3. Wait for new release (not in active maintenance, but might happen at some point)

@nikans
Copy link

nikans commented Jan 28, 2024

It's now must be changed to from django.utils.encoding import force_str

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

No branches or pull requests

4 participants