django22: Replace 'render_to_response' with 'render'
Per the Django 2.0 release notes [1]:
'django.shortcuts.render_to_response()' is deprecated in favor of
'django.shortcuts.render()'. 'render()' takes the same arguments
except that it also requires a request.
[1]
@@ -698,7 +698,8 @@ class DownloadTransferCreds(generic.View):
'id': transfer_id,
'auth_key': auth_key,
}}
- response = shortcuts.render_to_response(
+ response = shortcuts.render(
+ request,
'project/volumes/download_transfer_creds.html',
context, content_type='application/text')
response['Content-Disposition'] = (
