diff options
Diffstat (limited to 'alphabetlearning/payments/models.py')
-rw-r--r-- | alphabetlearning/payments/models.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/alphabetlearning/payments/models.py b/alphabetlearning/payments/models.py index 9ea9de2..3a3ba10 100644 --- a/alphabetlearning/payments/models.py +++ b/alphabetlearning/payments/models.py @@ -10,7 +10,7 @@ from alphabetlearning.resources.models import Resource class EmailVerification(models.Model): - email = models.EmailField() + email = models.EmailField(unique=True) verification_token = models.UUIDField(default=uuid.uuid4, editable=False) created_at = models.DateTimeField(auto_now_add=True) is_verified = models.BooleanField(default=False) @@ -23,7 +23,6 @@ class EmailVerification(models.Model): def __str__(self): return f"Email verification for {self.email}" - class EmailSignup(models.Model): email = models.EmailField(unique=True) date_added = models.DateTimeField(auto_now_add=True) |