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'.
Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Tested-by: Andy Doan <andy.doan@linaro.org>
from django.conf import settings
from django.http import Http404
-from django.shortcuts import render_to_response
-
-from patchwork.requestcontext import PatchworkRequestContext
+from django.shortcuts import render
help_pages = {
def help(request, path):
- context = PatchworkRequestContext(request)
if path in help_pages:
- return render_to_response(
- 'patchwork/help/' + help_pages[path], context)
+ return render(request,
+ 'patchwork/help/' + help_pages[path])
raise Http404