From 9147c72190f9d0e0bab22b268a84a4427f3d14fd Mon Sep 17 00:00:00 2001 From: OMAR AIT BENHADDI <88466716+Omaraitbenhaddi@users.noreply.github.com> Date: Sat, 13 Aug 2022 06:33:33 +0200 Subject: [PATCH] ugettext_lazy has been removed in Django 4.0 --- rest_auth/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_auth/views.py b/rest_auth/views.py index 0a0a982..d436fdd 100644 --- a/rest_auth/views.py +++ b/rest_auth/views.py @@ -6,7 +6,7 @@ from django.conf import settings from django.contrib.auth import get_user_model from django.core.exceptions import ObjectDoesNotExist from django.utils.decorators import method_decorator -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from django.views.decorators.debug import sensitive_post_parameters from rest_framework import status