aboutsummaryrefslogtreecommitdiffstats
path: root/src/notifier/models.py
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2020-10-05 16:13:03 -0400
committerSawyer Bergeron <sbergeron@iol.unh.edu>2020-10-05 16:13:54 -0400
commit0d20968698aa4a5fc58bad9ae30857df504e170c (patch)
tree615e00ef5090accde08e913e431057e11cf706ea /src/notifier/models.py
parent836ba6a22ece7590c203c837669b73259f02540a (diff)
Make emails send asynchronously (using celery job)
Change-Id: I9f4d5d05a0b72c883d667cf3910b3b318cbe82fa Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Diffstat (limited to 'src/notifier/models.py')
-rw-r--r--src/notifier/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/notifier/models.py b/src/notifier/models.py
index 0af748b..03e23b3 100644
--- a/src/notifier/models.py
+++ b/src/notifier/models.py
@@ -47,3 +47,10 @@ class Emailed(models.Model):
on_delete=models.CASCADE,
related_name="over_mail"
)
+
+
+class Email(models.Model):
+ sent = models.BooleanField(default=False)
+ title = models.CharField(max_length=150)
+ message = models.TextField()
+ recipient = models.CharField(max_length=150)