Skip to content

Commit

Permalink
Upgraded django-recaptcha to 4.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahboyce authored Dec 14, 2023
1 parent da1230a commit 2b7c3bb
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
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.23
docutils==0.17.1
Expand Down

0 comments on commit 2b7c3bb

Please sign in to comment.