summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2022-04-17 09:09:46 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2022-04-17 09:09:46 (GMT)
commit1de1a6a67b1b7c55545ea4261c2c6fbf072b14e6 (patch)
tree9a8c7af91a29c364c96a1cde170d5359588ffb07
parentb806fe700ca52023d7e80409caaf56fa21f205be (diff)
downloaddjango-ckeditor-main.zip
django-ckeditor-main.tar.gz
django-ckeditor-main.tar.bz2
trivial: replace deprecated usage of render_to_response (#64291)HEADmain
-rw-r--r--ckeditor/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ckeditor/views.py b/ckeditor/views.py
index cb5b77c..d4ac98f 100644
--- a/ckeditor/views.py
+++ b/ckeditor/views.py
@@ -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)