]> git.ipfire.org Git - thirdparty/patchwork.git/commit
REST: Only call prefetch_related from a method
authorStephen Finucane <stephen@that.guru>
Tue, 7 Feb 2017 22:11:24 +0000 (22:11 +0000)
committerStephen Finucane <stephen@that.guru>
Wed, 1 Mar 2017 22:11:04 +0000 (22:11 +0000)
commit4eb6793631d9ef59cf44991143197be9a41f5b9b
tree638565364282d0f7e8fe8b969b3b1f3f7ba0bc5c
parent2050140b44f3b6b2f83edd042cc59867ba158065
REST: Only call prefetch_related from a method

Calling prefetch_related on a class-level queryset variable doesn't do
anything and is a mistake. Correct this.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Reviewed-by: Andy Doan <andy.doan@linaro.org>
patchwork/api/check.py