Skip to content

Remove Django 3.0 DeprecationWarning #215

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 31, 2019
Merged

Conversation

rhenter
Copy link

@rhenter rhenter commented Dec 30, 2019

Change ugettext_lazy to gettext_lazy to remove Django 3.0 DeprecationWarning

  from collections import Mapping, Sequence
.../site-packages/stdimage/validators.py:44: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().
  message = _('The image you uploaded is too large.'
.../site-packages/stdimage/validators.py:59: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().
  message = _('The image you uploaded is too small.'

Copy link
Owner

@codingjoe codingjoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rhenter much appreciated!

@codingjoe codingjoe merged commit befc950 into codingjoe:master Dec 31, 2019
@codingjoe
Copy link
Owner

Released in 5.0.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.

2 participants