From 6507c6d97aa4d3e54a6740ad6944879634454c86 Mon Sep 17 00:00:00 2001 From: AkashNaik5 Date: Fri, 19 Jan 2024 02:41:09 +0530 Subject: [PATCH] #9226-gettext_lazy changed to ugettext_lazy --- rest_framework/authentication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/authentication.py b/rest_framework/authentication.py index 3f3bd2227..bd0e28e0b 100644 --- a/rest_framework/authentication.py +++ b/rest_framework/authentication.py @@ -6,7 +6,7 @@ import binascii from django.contrib.auth import authenticate, get_user_model from django.middleware.csrf import CsrfViewMiddleware -from django.utils.translation import gettext_lazy as _ +from django.utils.translation import ugettext_lazy as _ from rest_framework import HTTP_HEADER_ENCODING, exceptions