Skip to content

Fix Django deprecations for upgrade path to 5.2 - #1568

Open
viniciusandrade wants to merge 1 commit into
mainfrom
rc/2.5
Open

Fix Django deprecations for upgrade path to 5.2#1568
viniciusandrade wants to merge 1 commit into
mainfrom
rc/2.5

Conversation

@viniciusandrade

Copy link
Copy Markdown
Member

Summary

Phase 2 of the Django 2.2 → 5.2 upgrade plan. Fixes all known deprecations and removes abandoned dependencies while still on Django 2.2 — all changes are backward-compatible.

  • Replace ugettext_lazy/ugettext with gettext_lazy/gettext across 72 files
  • Remove django.utils.six, force_text, and unused smart_text imports
  • Replace abandoned django-form-utils with minimal utils/betterforms.py shim
  • Remove dead recaptcha-client dependency
  • Remove deprecated default_app_config from utils/__init__.py
  • Remove form_utils from INSTALLED_APPS

Test plan

  • Full test suite passes (200 tests across 13 apps)
  • No remaining ugettext, force_text, django.utils.six, or form_utils references
  • New tests for WsDecsSerializer (8 tests) and betterforms shim (9 tests)
  • Verify biblioref form fieldsets render correctly in browser
  • Verify suggest reCAPTCHA still works without recaptcha-client package

Replace ugettext_lazy/ugettext with gettext_lazy/gettext across 72 files,
remove django.utils.six and force_text, replace abandoned django-form-utils
with minimal betterforms shim, remove dead recaptcha-client dependency,
and remove deprecated default_app_config. All changes backward-compatible
with Django 2.2.
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.

1 participant