We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e5e858 commit 58d7360Copy full SHA for 58d7360
patchwork/api/patch.py
@@ -408,6 +408,7 @@ def get_queryset(self):
408
'project',
409
'series__project',
410
'related__patches__project',
411
+ 'patchinterest_set__user',
412
)
413
.select_related('state', 'submitter', 'series')
414
.defer('content', 'diff', 'headers')
patchwork/tests/api/test_patch.py
@@ -239,7 +239,7 @@ def test_list_bug_335(self):
239
series = create_series()
240
create_patches(5, series=series)
241
242
- with self.assertNumQueries(5):
+ with self.assertNumQueries(6):
243
self.client.get(self.api_url())
244
245
@utils.store_samples('patch-detail')
0 commit comments