[Patchew-devel] [PATCH 1/2] models: Add project name to Message __str__
Fam Zheng
famz at redhat.com
Fri Nov 16 06:09:47 UTC 2018
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