Prod live updates

This commit is contained in:
2025-04-23 09:33:58 -05:00
parent 992750dc55
commit 627bff8074
6 changed files with 90 additions and 114 deletions

View File

@@ -11,21 +11,20 @@ from .models import (
from phonenumber_field.formfields import PhoneNumberField
from django.core.exceptions import ValidationError
# from django_recaptcha.fields import ReCaptchaField
# from django.conf import settings
# from django_recaptcha.widgets import ReCaptchaV3
from django_recaptcha.fields import ReCaptchaField
from django.conf import settings
from django_recaptcha.widgets import ReCaptchaV3
# class CaptchaForm(forms.Form):
# captcha = ReCaptchaField(
# public_key=settings.RECAPTCHA_PUBLIC_KEY,
# private_key=settings.RECAPTCHA_PRIVATE_KEY,
# widget=ReCaptchaV3(
# attrs={
# 'required_score':0.85,
# }
# ),
# )
class CaptchaForm(forms.Form):
captcha = ReCaptchaField(
public_key=settings.RECAPTCHA_PUBLIC_KEY,
private_key=settings.RECAPTCHA_PRIVATE_KEY,
widget=ReCaptchaV3(
attrs={
'required_score':0.85,
}
),
)
class ChildrenForm(ModelForm):