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

RemovedInDjango40Warning: force_text() is deprecated in favor of force_str() #24

Closed
therefromhere opened this issue Apr 18, 2020 · 3 comments

Comments

@therefromhere
Copy link

This is a little way off for now (Django 4.0 is scheduled for ~December 2022), but just a heads up on this warning:

sphinxcontrib_django/docstrings.py:145: RemovedInDjango40Warning: force_text() is deprecated in favor of force_str().

  help_text = strip_tags(force_text(field.help_text))
@therefromhere
Copy link
Author

eg as seen in dj-stripe docs builds: https://travis-ci.org/github/dj-stripe/dj-stripe/jobs/673267022

therefromhere added a commit to therefromhere/sphinxcontrib-django that referenced this issue Apr 18, 2020
Fixed Django 4.0 deprecation warning (resolves sphinx-doc#24)
therefromhere added a commit to dj-stripe/dj-stripe that referenced this issue May 2, 2020
This warning:

sphinxcontrib_django/docstrings.py:145: RemovedInDjango40Warning: force_text() is deprecated in favor of force_str().
  help_text = strip_tags(force_text(field.help_text))

See sphinx-doc/sphinxcontrib-django#24
therefromhere added a commit to dj-stripe/dj-stripe that referenced this issue May 2, 2020
* Add code-block language to fix build warning on readthedocs, should resolve #1150
* Fix other docs build warnings
* Mute the docs build warning from sphinxcontrib_django - see sphinx-doc/sphinxcontrib-django#24
@ErikKalkoken
Copy link

Since Django 4 is now out, this have become a more severe issue. Would be amazing if the related PR could be released.

@timobrembeck
Copy link
Collaborator

@ErikKalkoken Since this repository is apparently no longer maintained, I added support for Django 4 to my fork over a year ago:

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 a pull request may close this issue.

3 participants