From 0d20968698aa4a5fc58bad9ae30857df504e170c Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Mon, 5 Oct 2020 16:13:03 -0400 Subject: Make emails send asynchronously (using celery job) Change-Id: I9f4d5d05a0b72c883d667cf3910b3b318cbe82fa Signed-off-by: Sawyer Bergeron --- src/notifier/models.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/notifier/models.py') 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) -- cgit 1.2.3-korg