Prod live updates
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user