]> git.ipfire.org Git - thirdparty/patchwork.git/commit
views: Resolve select_related issues
authorStephen Finucane <stephen@that.guru>
Sun, 9 Oct 2016 19:07:21 +0000 (20:07 +0100)
committerStephen Finucane <stephen@that.guru>
Mon, 10 Oct 2016 21:17:02 +0000 (22:17 +0100)
commit3c2dbf6c4537e5f90e88c8308fcb5d839330b458
tree56be94fc9be5871a6908d675339ca8fcee76a0bd
parent8ae7705b8c71976d36f85e6ce0da207657eb7a0e
views: Resolve select_related issues

Django 1.10 prohibits non-relational fields for nested relations [1].
Replace said call with a functional alternative.

[1] https://docs.djangoproject.com/en/dev/releases/1.10/#select-related-prohibits-non-relational-fields-for-nested-relations

Signed-off-by: Stephen Finucane <stephen@that.guru>
Reviewed-by: Daniel Axtens <dja@axtens.net>
patchwork/views/rest_api.py