sphinx-doc / sphinxcontrib-django

This is a sphinx extension which improves the documentation of Django apps.
https://pypi.org/project/sphinxcontrib-django/
Apache License 2.0
43 stars 25 forks source link

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

Closed therefromhere closed 1 year ago

therefromhere commented 4 years ago

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 commented 4 years ago

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

ErikKalkoken commented 2 years ago

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

timobrembeck commented 2 years ago

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