]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/models.py
[models] Improve comment filter
[patchwork] / apps / patchwork / models.py
index c36f960827b333573f89e7690d1d49b021a26a1a..d70fdb208eab49a29eb62daf1487c38db03993ab 100644 (file)
@@ -220,7 +220,7 @@ class Patch(models.Model):
     def mbox(self):
         comment = None
         try:
-            comment = Comment.objects.get(msgid = self.msgid)
+            comment = Comment.objects.get(patch = self, msgid = self.msgid)
         except Exception:
             pass