[PATCH 49/51] models: Provide a string representation of SeriesRevision
Damien Lespiau
damien.lespiau at intel.com
Sat Sep 12 01:55:22 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 830b7fb..3273228 100644
--- a/patchwork/models.py
+++ b/patchwork/models.py
@@ -475,6 +475,9 @@ class SeriesRevision(models.Model):
order=order)
sp.save()
+ def __unicode__(self):
+ return self.series.name + " (rev " + str(self.version) + ")"
+
class SeriesRevisionPatch(models.Model):
patch = models.ForeignKey(Patch)
revision = models.ForeignKey(SeriesRevision)
--
2.1.0
More information about the Patchwork
mailing list