[PATCH] models: Rename 'Check.__unicode__' to '__str__'

Stephen Finucane stephen.finucane at intel.com
Thu Jan 21 20:50:05 AEDT 2016


This causes issues with Python 3.

Signed-off-by: Stephen Finucane <stephen.finucane at intel.com>
---
 patchwork/models.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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())
 
 
-- 
2.0.0



More information about the Patchwork mailing list