]> git.ipfire.org Git - thirdparty/patchwork.git/commit
views: Use context dictionaries in '__init__'
authorStephen Finucane <stephen.finucane@intel.com>
Mon, 21 Mar 2016 17:37:42 +0000 (17:37 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Fri, 25 Mar 2016 11:25:00 +0000 (11:25 +0000)
commit814306b78347d7b1f821542732e523530701f0f9
tree1045020a2c00c454d17344eda67e081616dc67f5
parent4f2d6170e3d37bffcad1ee4c1a102a210c008ac3
views: Use context dictionaries in '__init__'

Remove the use of PatchworkRequestContext in one function of this view
as it is not required and causes a 'RemovedInDjango110Warning' warning.
This requires the use of 'render', rather than 'render_to_response'.

The remaining use of this context option will be addressed in a
follow-up patch.

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Tested-by: Andy Doan <andy.doan@linaro.org>
patchwork/views/__init__.py