diff options
author | Matthew Lemon <y@yulqen.org> | 2024-12-03 17:27:18 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-12-03 17:27:18 +0000 |
commit | 4b21e3889e8337fa5bc9e58cdfc61a9f2019adc9 (patch) | |
tree | 2ecfaa0537d3fe875214934d82b31357ed769ea7 /alphabetlearning/payments/models.py | |
parent | 3bcd728b0bd37c95865205a75ffbddfb2e086f90 (diff) |
Better handling of email verification
Diffstat (limited to 'alphabetlearning/payments/models.py')
-rw-r--r-- | alphabetlearning/payments/models.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/alphabetlearning/payments/models.py b/alphabetlearning/payments/models.py index 0702427..ce5c8aa 100644 --- a/alphabetlearning/payments/models.py +++ b/alphabetlearning/payments/models.py @@ -7,12 +7,15 @@ from django.db import models from alphabetlearning.resources.models import Resource -class PendingEmailVerification(models.Model): +class EmailVerification(models.Model): email = models.EmailField() verification_token = models.UUIDField(default=uuid.uuid4, editable=False) created_at = models.DateTimeField(auto_now_add=True) is_verified = models.BooleanField(default=False) + def __str__(self): + return f"Email verification for {self.email}" + class EmailSignup(models.Model): email = models.EmailField(unique=True) |