[PATCH 48/51] models: Provide a string representation of Series

Damien Lespiau damien.lespiau at intel.com
Sat Sep 12 01:55:21 AEST 2015


Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 patchwork/models.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/patchwork/models.py b/patchwork/models.py
index e14d843..830b7fb 100644
--- a/patchwork/models.py
+++ b/patchwork/models.py
@@ -449,6 +449,9 @@ class Series(models.Model):
     # This is the number of patches of the latest version.
     n_patches = models.IntegerField(default=0)
 
+    def __unicode__(self):
+        return self.name
+
 # A 'revision' of a series. Resending a new version of a patch or a full new
 # iteration of a series will create a new revision.
 class SeriesRevision(models.Model):
-- 
2.1.0



More information about the Patchwork mailing list