]> git.ipfire.org Git - thirdparty/patchwork.git/commit
compat: Wrap 'render_to_string'
authorStephen Finucane <stephen.finucane@intel.com>
Thu, 24 Mar 2016 11:05:45 +0000 (11:05 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Fri, 25 Mar 2016 11:24:27 +0000 (11:24 +0000)
commit898573f005617a1d118bf5c59f9ff5d3570b4f9d
treebc743171e0800132753bf9d14cd18eb826d2199b
parent85cf2b8d09480a7bdc88bc1ebb2954f862c0f8b8
compat: Wrap 'render_to_string'

The 'dictionary' and 'context_instance' parameters for the
'render_to_string' function produce 'RemovedInDjango110' warnings
in Django 1.9 and will be removed in Django 1.10. However, these
parameters are still valid for Django < 1.8. Provide a shim to
allow use of the Django>=1.8-style parameters, while retaining
backwards compatibility with Django < 1.8.

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Tested-by: Andy Doan <andy.doan@linaro.org>
patchwork/compat.py [new file with mode: 0644]