trivial: replace deprecated usage of render_to_response (#64291)

This commit is contained in:
Frédéric Péters 2022-04-17 11:09:46 +02:00
parent b806fe700c
commit 1de1a6a67b
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ from django.core.files.storage import default_storage
from django.views.decorators.csrf import csrf_exempt
from django.views import generic
from django.http import HttpResponse
from django.shortcuts import render_to_response
from django.shortcuts import render
from django.template import RequestContext
from ckeditor import image_processing
@ -146,4 +146,4 @@ def browse(request):
context = {
'files': get_files_browse_urls(request.user),
}
return render_to_response('browse.html', context)
return render(request, 'browse.html', context)