django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy()
abdulwahidgul24085 opened this issue · 3 comments
There is a RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy() warnings when running tests on Django 3. The location for this error is in the following section
/imagekit/admin.py
on line 10.
Solution is simply
from django.utils.translation import gettext_lazy as _
Is it ok if I create a pull request and merge this? Or your team isn't supporting Django version 3 at the moment?
Hello and thank you for your contribution.
We are currently supporting Django 3 and under Django 3 there is no problem with ImageKit. The problem will occur when Django 4 comes out as the warning message is saying. And as we know Django 4 will come December this year it is better we to be prepared for that. I'll be glad if you prepare a PR for this change.