Skip to content

Commit

Permalink
Merge pull request #104 from tghw/master
Browse files Browse the repository at this point in the history
Use `gettext_lazy` instead of `ugettext_lazy` for Django 4.0 compatibility
  • Loading branch information
aaronn committed Apr 6, 2022
2 parents 0a382e9 + 4d06653 commit 23bc728
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 23bc728

Please sign in to comment.