]> git.ipfire.org Git - thirdparty/patchwork.git/commit
views: Use context dictionaries in 'user'
authorStephen Finucane <stephen.finucane@intel.com>
Wed, 16 Mar 2016 16:00:18 +0000 (16:00 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Fri, 25 Mar 2016 11:24:49 +0000 (11:24 +0000)
commit9d871cb599bd7ef5d28e77168f2bc3964299b66b
tree96ade0fe61875d57f403a4db1994438d9028006a
parentf2a172e86980512f2e050bfdb8fa423e7764bf2a
views: Use context dictionaries in 'user'

Remove the use of PatchworkRequestContext in this view as it is not
required and causes a 'RemovedInDjango110Warning' warning. This
requires the use of 'render', rather than 'render_to_response'. It
also requires adding a 'request' parameter to 'render_to_string' calls
so that the default context processors continue to be passed through.

This includes a typo fix for another template.

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