Skip to content

Commit f93ddbb

Browse files
committed
Fix searching by Message-ID
1 parent 40c9e12 commit f93ddbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: pgcommitfest/commitfest/views.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def commitfest(request, cfid):
283283

284284
def patches_by_messageid(messageid):
285285
# First try to find the messageid in our database
286-
patches = Patch.objects.select_related().filter(mailthread__messageid=messageid).order_by('created', ).all()
286+
patches = Patch.objects.select_related().filter(mailthread_set__messageid=messageid).order_by('created', ).all()
287287
if patches:
288288
return patches
289289

@@ -300,7 +300,7 @@ def patches_by_messageid(messageid):
300300

301301
first_email = min(thread, key=lambda x: x['date'])
302302

303-
return Patch.objects.select_related().filter(mailthread__messageid=first_email['msgid']).order_by('created',).all()
303+
return Patch.objects.select_related().filter(mailthread_set__messageid=first_email['msgid']).order_by('created',).all()
304304

305305

306306
def global_search(request):

0 commit comments

Comments
 (0)