diff mbox

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

Message ID 1441986924-26689-49-git-send-email-damien.lespiau@intel.com
State Superseded
Headers show

Commit Message

Damien Lespiau Sept. 11, 2015, 3:55 p.m. UTC
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
 patchwork/models.py | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

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):