Skip to content

Remove Django 3.0 DeprecationWarning #773

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

Merged
merged 1 commit into from
Dec 30, 2019
Merged

Remove Django 3.0 DeprecationWarning #773

merged 1 commit into from
Dec 30, 2019

Conversation

rhenter
Copy link
Contributor

@rhenter rhenter commented Dec 30, 2019

Change ugettext_lazy by gettext_lazy to remove Django 3.0 DeprecationWarning

  • Log Sample:
.../lib/python3.7/site-packages/oauth2_provider/models.py:41: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().
  (CLIENT_CONFIDENTIAL, _("Confidential")),
.../lib/python3.7/site-packages/oauth2_provider/models.py:42: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().
  (CLIENT_PUBLIC, _("Public")),
.../lib/python3.7/site-packages/oauth2_provider/models.py:50: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().
  (GRANT_AUTHORIZATION_CODE, _("Authorization code")),
.../lib/python3.7/site-packages/oauth2_provider/models.py:51: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().
  (GRANT_IMPLICIT, _("Implicit")),
.../lib/python3.7/site-packages/oauth2_provider/models.py:52: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().
  (GRANT_PASSWORD, _("Resource owner password-based")),
.../lib/python3.7/site-packages/oauth2_provider/models.py:53: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().
  (GRANT_CLIENT_CREDENTIALS, _("Client credentials")),
.../lib/python3.7/site-packages/oauth2_provider/models.py:67: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().
  blank=True, help_text=_("Allowed URIs list, space separated"),

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1234

  • 2 of 2 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 94.725%

Totals Coverage Status
Change from base Build 1227: 0.0%
Covered Lines: 1257
Relevant Lines: 1327

💛 - Coveralls

@auvipy auvipy merged commit bf1525e into django-oauth:master Dec 30, 2019
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.

3 participants