diff options
author | Matthew Lemon <y@yulqen.org> | 2024-12-08 15:30:51 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-12-08 15:30:51 +0000 |
commit | 9950234b1aa07fceed0d220297d158be6a067cd2 (patch) | |
tree | 23708f889cfc11f84dbc288508a29719a18ac53d /alphabetlearning/payments/forms.py | |
parent | 30101453a75aaa635e3458d509dec164a6a68ac1 (diff) |
wip: sorting out the email sending
Diffstat (limited to 'alphabetlearning/payments/forms.py')
-rw-r--r-- | alphabetlearning/payments/forms.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alphabetlearning/payments/forms.py b/alphabetlearning/payments/forms.py index f69397f..3aa2d95 100644 --- a/alphabetlearning/payments/forms.py +++ b/alphabetlearning/payments/forms.py @@ -5,10 +5,10 @@ from .models import EmailVerification class EmailVerificationForm(forms.ModelForm): class Meta: model = EmailVerification - fields = ['email'] + fields = ["email"] def clean_email(self): - email = self.cleaned_data.get('email') + email = self.cleaned_data.get("email") if EmailVerification.objects.filter(email=email).exists(): raise forms.ValidationError("This email address is already in use.") - return email
\ No newline at end of file + return email |