[Patchew-devel] [PATCH 01/16] models: Add project name to Message __str__
Fam Zheng
famz at redhat.com
Wed Nov 21 02:08:31 UTC 2018
Signed-off-by: Fam Zheng <famz at redhat.com>
Message-Id: <20181116060948.25592-2-famz at redhat.com>
Reviewed-by tags etc. from replies now trigge retesting and in turn resending
Signed-off-by: Fam Zheng <famz at redhat.com>
---
api/models.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/api/models.py b/api/models.py
index b42be53..ea3b654 100644
--- a/api/models.py
+++ b/api/models.py
@@ -718,7 +718,7 @@ class Message(models.Model):
return MessageResult(message=self, **kwargs)
def __str__(self):
- return self.subject
+ return self.project.name + "/" + self.subject
class Meta:
unique_together = ('project', 'message_id',)
--
2.17.2
More information about the Patchew-devel
mailing list