]> git.ipfire.org Git - thirdparty/patchwork.git/commit
views: Use context dictionaries in 'mail'
authorStephen Finucane <stephen.finucane@intel.com>
Mon, 21 Mar 2016 13:30:20 +0000 (13:30 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Fri, 25 Mar 2016 11:24:53 +0000 (11:24 +0000)
commitd7df3edd57079feeef3a88df8df8f6062123d949
treedf2038c595a90376a9fd746178167fa610128bdc
parent9d871cb599bd7ef5d28e77168f2bc3964299b66b
views: Use context dictionaries in 'mail'

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 removes a context variable that was not used.

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