Skip to content

fix: Update deprecated ugettext_lazy for Django 4+ compatibility#1

Open
hernan-entel-cci wants to merge 1 commit intoHosseinSayyedMousavi:masterfrom
hernan-entel-cci:master
Open

fix: Update deprecated ugettext_lazy for Django 4+ compatibility#1
hernan-entel-cci wants to merge 1 commit intoHosseinSayyedMousavi:masterfrom
hernan-entel-cci:master

Conversation

@hernan-entel-cci
Copy link

The ugettext_lazy alias was removed in Django 4.0. This commit replaces it with gettext_lazy to ensure the library functions correctly with modern versions of Django.

The change is implemented within the existing try/except block to maintain backward compatibility with older Django versions that do not have gettext_lazy.

The `ugettext_lazy` alias was removed in Django 4.0. This commit replaces it with `gettext_lazy` to ensure the library functions correctly with modern versions of Django.

The change is implemented within the existing try/except block to maintain backward compatibility with older Django versions that do not have `gettext_lazy`.
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