diff options
author | Magnus Hagander | 2019-01-06 11:56:40 +0000 |
---|---|---|
committer | Magnus Hagander | 2019-01-10 19:44:35 +0000 |
commit | 124027300734b72aceeb527f550c56aff8c847f3 (patch) | |
tree | f39d65335a3e3ba0c6b0f2974e818a3d1be9ec92 /postgresqleu/mailqueue/models.py | |
parent | a246a6ee0992eb1b0762742081cd2ffc01d6b7ab (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.py | 2 |
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) |