From 9e662f359629032bc838fdeccbdff41bc36658de Mon Sep 17 00:00:00 2001 From: Burak Karahan Date: Tue, 18 Jan 2022 17:04:42 +0300 Subject: [PATCH] Update serializers.py This is for django 4.0> update --- rest_auth/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_auth/serializers.py b/rest_auth/serializers.py index b6452317..94562331 100644 --- a/rest_auth/serializers.py +++ b/rest_auth/serializers.py @@ -3,7 +3,7 @@ from django.contrib.auth.forms import PasswordResetForm, SetPasswordForm from django.contrib.auth.tokens import default_token_generator from django.utils.http import urlsafe_base64_decode as uid_decoder -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from django.utils.encoding import force_text from rest_framework import serializers, exceptions