diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-09-20 13:28:54 +1000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-09-20 13:28:54 +1000 |
commit | b261b3cff0c7f4aacb6c9bda5f5491d340b1af17 (patch) | |
tree | 0f9b4f336cfb92d3cc021e9b20dbb1d15d8c326b /apps | |
parent | 07ded8bef209073969ca66049c91783ce59fc0f7 (diff) | |
download | patchwork-b261b3cff0c7f4aacb6c9bda5f5491d340b1af17.tar patchwork-b261b3cff0c7f4aacb6c9bda5f5491d340b1af17.tar.gz |
[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')
-rw-r--r-- | apps/patchwork/models.py | 2 |
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 |