From edf7de7d2ea675259412a55d8cddbc548941bbab Mon Sep 17 00:00:00 2001 From: Sandrava Date: Mon, 16 Sep 2024 08:28:35 +0100 Subject: [PATCH] updated recaptcha namespace --- indigo/settings.py | 4 ++-- indigo_app/forms/users.py | 2 +- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/indigo/settings.py b/indigo/settings.py index b341f21c4..e0aa74651 100644 --- a/indigo/settings.py +++ b/indigo/settings.py @@ -64,7 +64,7 @@ 'allauth.socialaccount', # installations should include social account providers, such as # allauth.socialaccount.providers.google - 'captcha', + 'django_recaptcha', 'django.contrib.sites', 'django.contrib.admin', @@ -433,7 +433,7 @@ RECAPTCHA_PRIVATE_KEY = os.environ.get('RECAPTCHA_PRIVATE_KEY', '6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe') if DEBUG: # don't complain about the test keys - SILENCED_SYSTEM_CHECKS = ['captcha.recaptcha_test_key_error'] + SILENCED_SYSTEM_CHECKS = ['django_recaptcha.recaptcha_test_key_error'] DATA_UPLOAD_MAX_NUMBER_FIELDS = 10000 diff --git a/indigo_app/forms/users.py b/indigo_app/forms/users.py index 9cf3b575f..1c355e902 100644 --- a/indigo_app/forms/users.py +++ b/indigo_app/forms/users.py @@ -1,5 +1,5 @@ from allauth.account.forms import SignupForm -from captcha.fields import ReCaptchaField +from django_recaptcha.fields import ReCaptchaField from django import forms from django.conf import settings from django.utils.translation import gettext_lazy as _ diff --git a/pyproject.toml b/pyproject.toml index 7d5de9b33..88213aa89 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ dependencies = [ "django-htmx>=1.15.0", "django-languages-plus>=1.1.1", "django-pipeline>=1.6.11,<3.1.0", - "django-recaptcha>=3.0.0,<4.0.0", + "django-recaptcha>=4.0.0", "django-reversion>=3.0.9", "django-sass-processor>=1.1", "django-sass-processor-dart-sass>=0.0.1",