summaryrefslogtreecommitdiffstats
path: root/apps/patchwork
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2008-09-20 13:28:54 +1000
committerJeremy Kerr <jk@ozlabs.org>2008-09-20 13:28:54 +1000
commitb261b3cff0c7f4aacb6c9bda5f5491d340b1af17 (patch)
tree0f9b4f336cfb92d3cc021e9b20dbb1d15d8c326b /apps/patchwork
parent07ded8bef209073969ca66049c91783ce59fc0f7 (diff)
downloadpatchwork-b261b3cff0c7f4aacb6c9bda5f5491d340b1af17.tar.bz2
patchwork-b261b3cff0c7f4aacb6c9bda5f5491d340b1af17.tar.xz
[models] Improve comment filter
We should be able to search on the patch_id faster. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/patchwork')
-rw-r--r--apps/patchwork/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/patchwork/models.py b/apps/patchwork/models.py
index c36f960..d70fdb2 100644
--- a/apps/patchwork/models.py
+++ b/apps/patchwork/models.py
@@ -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