Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded django-recaptcha to 4.0.0. #1440

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions contact/forms.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import logging

import django
from captcha.fields import ReCaptchaField
from captcha.widgets import ReCaptchaV3
from django import forms
from django.conf import settings
from django.contrib.sites.models import Site
from django.utils.encoding import force_bytes
from django_contact_form.forms import ContactForm
from django_recaptcha.fields import ReCaptchaField
from django_recaptcha.widgets import ReCaptchaV3
from pykismet3 import Akismet, AkismetServerError

logger = logging.getLogger(__name__)
Expand Down
2 changes: 1 addition & 1 deletion djangoproject/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"svntogit",
"tracdb",
"fundraising",
"captcha",
"django_recaptcha",
"registration",
"django_hosts",
"sorl.thumbnail",
Expand Down
2 changes: 1 addition & 1 deletion djangoproject/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@
"djangoproject.middleware.CORSMiddleware",
)

SILENCED_SYSTEM_CHECKS = ["captcha.recaptcha_test_key_error"]
SILENCED_SYSTEM_CHECKS = ["django_recaptcha.recaptcha_test_key_error"]
2 changes: 1 addition & 1 deletion djangoproject/settings/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
SECRET_KEY = os.environ.get("SECRET_KEY")

SILENCED_SYSTEM_CHECKS = SILENCED_SYSTEM_CHECKS + [
"captcha.recaptcha_test_key_error" # Default test keys for development.
"django_recaptcha.recaptcha_test_key_error" # Default test keys for development.
]

ALLOWED_HOSTS = [".localhost", "127.0.0.1", "www.127.0.0.1"]
Expand Down
2 changes: 1 addition & 1 deletion djangoproject/settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
)

# RECAPTCHA KEYS
# Defaults will trigger 'captcha.recaptcha_test_key_error' system check
# Defaults will trigger 'django_recaptcha.recaptcha_test_key_error' system check
if "recaptcha_public_key" in SECRETS:
RECAPTCHA_PUBLIC_KEY = SECRETS.get("recaptcha_public_key")
RECAPTCHA_PRIVATE_KEY = SECRETS.get("recaptcha_private_key")
Expand Down
4 changes: 2 additions & 2 deletions fundraising/forms.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import stripe
from captcha.fields import ReCaptchaField
from captcha.widgets import ReCaptchaV3
from django import forms
from django.utils.safestring import mark_safe
from django_recaptcha.fields import ReCaptchaField
from django_recaptcha.widgets import ReCaptchaV3

from .models import INTERVAL_CHOICES, LEADERSHIP_LEVEL_AMOUNT, DjangoHero, Donation

Expand Down
2 changes: 1 addition & 1 deletion requirements/common.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ django-hosts==5.1
django-money==2.1.1
django-push==1.1
django-read-only==1.12.0
django-recaptcha==3.0.0
django-recaptcha==4.0.0
django-registration-redux==2.10
Django==3.2.20
docutils==0.17.1
Expand Down
Loading