summaryrefslogtreecommitdiff
path: root/postgresqleu/mailqueue/models.py
diff options
context:
space:
mode:
authorMagnus Hagander2019-01-06 11:56:40 +0000
committerMagnus Hagander2019-01-10 19:44:35 +0000
commit124027300734b72aceeb527f550c56aff8c847f3 (patch)
treef39d65335a3e3ba0c6b0f2974e818a3d1be9ec92 /postgresqleu/mailqueue/models.py
parenta246a6ee0992eb1b0762742081cd2ffc01d6b7ab (diff)
Replace __unicode__ with __str__
2to3 doesn't do this automatically, probably because weird things can happen if you had both. We know we didn't, so just do a straight replacement.
Diffstat (limited to 'postgresqleu/mailqueue/models.py')
-rw-r--r--postgresqleu/mailqueue/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/mailqueue/models.py b/postgresqleu/mailqueue/models.py
index 1a0642a9..6b002e7e 100644
--- a/postgresqleu/mailqueue/models.py
+++ b/postgresqleu/mailqueue/models.py
@@ -8,5 +8,5 @@ class QueuedMail(models.Model):
# anything, we just push them right in there!
fullmsg = models.TextField(null=False, blank=False)
- def __unicode__(self):
+ def __str__(self):
return "%s: %s -> %s" % (self.pk, self.sender, self.receiver)