Skip to content

Commit

Permalink
Use gettext_lazy instead of ugettext_lazy for Django 4.0 compatib…
Browse files Browse the repository at this point in the history
…ility.
  • Loading branch information
tghw committed Mar 29, 2022
1 parent 0a382e9 commit 4d06653
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drfpasswordless/serializers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from django.contrib.auth import get_user_model
from django.core.exceptions import PermissionDenied
from django.core.validators import RegexValidator
Expand Down
2 changes: 1 addition & 1 deletion tests/test_verification.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from rest_framework import status
from rest_framework.authtoken.models import Token
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from rest_framework.test import APITestCase
from django.contrib.auth import get_user_model
from django.urls import reverse
Expand Down

0 comments on commit 4d06653

Please sign in to comment.