From b481069d9444cc0756bd9f6780e7700dcf4903f5 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 9 Dec 2024 17:16:41 +0000 Subject: wip: moving home page to home app and implementing reCAPTCHA --- alphabetlearning/payments/forms.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'alphabetlearning/payments/forms.py') diff --git a/alphabetlearning/payments/forms.py b/alphabetlearning/payments/forms.py index 3aa2d95..68acfee 100644 --- a/alphabetlearning/payments/forms.py +++ b/alphabetlearning/payments/forms.py @@ -1,8 +1,13 @@ from django import forms +from django_recaptcha.fields import ReCaptchaField +from django_recaptcha.widgets import ReCaptchaV2Checkbox + from .models import EmailVerification class EmailVerificationForm(forms.ModelForm): + captcha = ReCaptchaField(widget=ReCaptchaV2Checkbox) + class Meta: model = EmailVerification fields = ["email"] -- cgit v1.2.3