]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
models: Rename 'Check.__unicode__' to '__str__'
authorStephen Finucane <stephen.finucane@intel.com>
Thu, 21 Jan 2016 09:49:24 +0000 (09:49 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 21 Jan 2016 09:49:24 +0000 (09:49 +0000)
This causes issues with Python 3.

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
patchwork/models.py

index a237964a40c7b663aa3a460a508b213de00c3bb8..88af2f0fe84702174273381acaa126b11334b0f0 100644 (file)
@@ -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())