File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 1
1
import logging
2
- from django .utils .translation import ugettext_lazy as _
2
+ from django .utils .translation import gettext_lazy as _
3
3
from django .contrib .auth import get_user_model
4
4
from django .core .exceptions import PermissionDenied
5
5
from django .core .validators import RegexValidator
@@ -299,5 +299,3 @@ class TokenResponseSerializer(serializers.Serializer):
299
299
"""
300
300
token = serializers .CharField (source = 'key' )
301
301
key = serializers .CharField (write_only = True )
302
-
303
-
Original file line number Diff line number Diff line change 1
1
from rest_framework import status
2
2
from rest_framework .authtoken .models import Token
3
- from django .utils .translation import ugettext_lazy as _
3
+ from django .utils .translation import gettext_lazy as _
4
4
from rest_framework .test import APITestCase
5
5
from django .contrib .auth import get_user_model
6
6
from django .urls import reverse
You can’t perform that action at this time.
0 commit comments