django-rest-framework-recaptcha icon indicating copy to clipboard operation
django-rest-framework-recaptcha copied to clipboard

Support Django 4 and Python 3.10

Open basitiyidir opened this issue 2 years ago • 0 comments

  • Django REST framework reCAPTCHA version: 0.2.0
  • Django REST framework version: 3.13.1
  • Django version: 4.0.5
  • Python version: 3.10.2
  • Operating System: Ubuntu 22

Description

I upgraded my project to Django 4, Python 3.10. Do you intend to support the above? when will you support

What I Did

from rest_framework_recaptcha.fields import ReCaptchaField
File "/usr/local/lib/python3.10/site-packages/rest_framework_recaptcha/fields.py", line 3, in <module>
from rest_framework_recaptcha.validators import ReCaptchaValidator
File "/usr/local/lib/python3.10/site-packages/rest_framework_recaptcha/validators.py", line 7, in <module>
from django.utils.translation import ugettext_lazy as _
ImportError: cannot import name 'ugettext_lazy' from 'django.utils.translation' (/usr/local/lib/python3.10/site-packages/django/utils/translation/__init__.py)

basitiyidir avatar Sep 01 '22 09:09 basitiyidir