]> git.ipfire.org Git - thirdparty/patchwork.git/commit
views: Use select_related, not prefetch_related
authorStephen Finucane <stephen@that.guru>
Mon, 29 Oct 2018 15:46:39 +0000 (15:46 +0000)
committerDaniel Axtens <dja@axtens.net>
Tue, 30 Oct 2018 13:19:24 +0000 (00:19 +1100)
commit780b1a2d07adea0ae2372665b2caefc85f432c9f
tree42ee05157c4ec338e24053f1e3796cf5ad5b5820
parent124259079aa60da1912334f2060046eba8abf667
views: Use select_related, not prefetch_related

Now that there's a 1:N rather than N:M relationship between series and
patches, we should be using select_related rather than prefetch_related.

Tested-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: #223
Fixes: 76505e91 ("models: Convert Series-Patch relationship to 1:N")
Signed-off-by: Daniel Axtens <dja@axtens.net>
patchwork/views/__init__.py