diff options
author | Stephen Finucane <stephen.finucane@intel.com> | 2016-01-21 09:49:24 +0000 |
---|---|---|
committer | Stephen Finucane <stephen.finucane@intel.com> | 2016-01-21 09:49:24 +0000 |
commit | ce7b58bc5b3256c8a97566f645970ff83f98d58d (patch) | |
tree | fd4b666638ab58d81b44393ba2b8d918e1515032 | |
parent | 9d4851a8d6f80b03d4f8ae30623fa0f956584a41 (diff) | |
download | patchwork-ce7b58bc5b3256c8a97566f645970ff83f98d58d.tar patchwork-ce7b58bc5b3256c8a97566f645970ff83f98d58d.tar.gz |
models: Rename 'Check.__unicode__' to '__str__'
This causes issues with Python 3.
Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
-rw-r--r-- | patchwork/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/patchwork/models.py b/patchwork/models.py index a237964..88af2f0 100644 --- a/patchwork/models.py +++ b/patchwork/models.py @@ -580,7 +580,7 @@ class Check(models.Model): return "<Check id='%d' context='%s' state='%s'" % ( self.id, self.context, self.get_state_display()) - def __unicode__(self): + def __str__(self): return '%s (%s)' % (self.context, self.get_state_display()) |