Djangorestframework-simplejwt: RemovedInDjango40Warning

Created on 7 Jul 2020  路  1Comment  路  Source: jazzband/djangorestframework-simplejwt

Hello,
Running pytest, I noticed the following warnings with this great library:
rest_framework_simplejwt/backends.py:58: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().

rest_framework_simplejwt/tokens.py:44: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().

rest_framework_simplejwt/serializers.py:24: RemovedInDjango40Warning: django.utils.translation.ugettext_lazy() is deprecated in favor of django.utils.translation.gettext_lazy().

Should we already upgrade? Thoughts?

question

Most helpful comment

Once Dave finds time to maybe try out the GitHub action PR and just time in general... you can follow https://github.com/SimpleJWT/django-rest-framework-simplejwt/issues/236#issuecomment-640943117

Basically, in pytest.ini:

filterwarnings =
    ignore::django.utils.deprecation.RemovedInDjango40Warning

This'll remove the deprecation warning for the time being. Just keep your eyes peeled for the next JWT upgrade as it's already fixed in master.

>All comments

Once Dave finds time to maybe try out the GitHub action PR and just time in general... you can follow https://github.com/SimpleJWT/django-rest-framework-simplejwt/issues/236#issuecomment-640943117

Basically, in pytest.ini:

filterwarnings =
    ignore::django.utils.deprecation.RemovedInDjango40Warning

This'll remove the deprecation warning for the time being. Just keep your eyes peeled for the next JWT upgrade as it's already fixed in master.

Was this page helpful?
0 / 5 - 0 ratings