From ca91d0789a81aba9b2630e0aebff195978b25076 Mon Sep 17 00:00:00 2001 From: Brice gnanago <38640422+Bricegnanago@users.noreply.github.com> Date: Fri, 16 Aug 2024 21:55:02 +0000 Subject: [PATCH] Replace ugettext_lazy with gettext_lazy for Django 4.1.7 compatibility --- rest_framework_recaptcha/validators.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rest_framework_recaptcha/validators.py b/rest_framework_recaptcha/validators.py index e50c19e..0409b43 100644 --- a/rest_framework_recaptcha/validators.py +++ b/rest_framework_recaptcha/validators.py @@ -4,7 +4,9 @@ from rest_framework import serializers from django.core.exceptions import ImproperlyConfigured -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ + + from rest_framework_recaptcha.compat import urlencode, urlopen from rest_framework_recaptcha.conf import settings