aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/payments/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'alphabetlearning/payments/models.py')
-rw-r--r--alphabetlearning/payments/models.py5
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)