diff options
author | 2020-11-09 21:57:49 +0000 | |
---|---|---|
committer | 2020-11-09 21:57:49 +0000 | |
commit | 6e7d8af810619e7ea3d14a612c735892c5ff1a84 (patch) | |
tree | c4c7723c3c392137a1875e5c29ec37662ba93e52 /src/notifier/models.py | |
parent | 986f474e540669fd9fb72810b3f31fa3f4c3e97a (diff) | |
parent | 0d20968698aa4a5fc58bad9ae30857df504e170c (diff) |
Merge "Make emails send asynchronously (using celery job)"
Diffstat (limited to 'src/notifier/models.py')
-rw-r--r-- | src/notifier/models.py | 7 |
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) |