summaryrefslogtreecommitdiff
path: root/pgcommitfest/mailqueue/models.py
diff options
context:
space:
mode:
authorMagnus Hagander2013-07-19 12:55:56 +0000
committerMagnus Hagander2013-07-19 12:55:56 +0000
commit3a0dcbdbff5d1dbdef75eee000075c67c27f2915 (patch)
tree99cab09d9038dcd5ff72522771005144a151972e /pgcommitfest/mailqueue/models.py
Really need to get this into git, so I can do some hacking.
May very well do a complete rebase later to get rid of history
Diffstat (limited to 'pgcommitfest/mailqueue/models.py')
-rw-r--r--pgcommitfest/mailqueue/models.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/pgcommitfest/mailqueue/models.py b/pgcommitfest/mailqueue/models.py
new file mode 100644
index 0000000..f2e7d19
--- /dev/null
+++ b/pgcommitfest/mailqueue/models.py
@@ -0,0 +1,11 @@
+from django.db import models
+
+class QueuedMail(models.Model):
+ sender = models.EmailField(max_length=100, null=False, blank=False)
+ receiver = models.EmailField(max_length=100, null=False, blank=False)
+ # We store the raw MIME message, so if there are any attachments or
+ # anything, we just push them right in there!
+ fullmsg = models.TextField(null=False, blank=False)
+
+ def __unicode__(self):
+ return "%s: %s -> %s" % (self.pk, self.sender, self.receiver)