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

DeprecationWarning on Django 3.0+ #33

Closed
adamchainz opened this issue Aug 21, 2021 · 2 comments · Fixed by #34
Closed

DeprecationWarning on Django 3.0+ #33

adamchainz opened this issue Aug 21, 2021 · 2 comments · Fixed by #34

Comments

@adamchainz
Copy link
Contributor

I found this on Django 3.0 when integrating in Django-MySQL:

File ".../django_jsonfield_backport/apps.py", line 10, in JSONFieldConfig
  verbose_name = _("JSONField backport from Django 3.1")
File ".../django/utils/translation/__init__.py", line 142, in ugettext_lazy
  warnings.warn(
django.utils.deprecation.RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().

I run my library tests with python -W error::DeprecationWarning, to avoid passing warning errors on to users, so this broke my test run.

adamchainz added a commit to adamchainz/django-jsonfield-backport that referenced this issue Aug 21, 2021
laymonage pushed a commit to adamchainz/django-jsonfield-backport that referenced this issue Aug 21, 2021
@laymonage
Copy link
Owner

laymonage commented Aug 21, 2021

Fix released in 1.0.4. Thanks! 🎉

@adamchainz
Copy link
Contributor Author

Thank you!

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.

2 participants