Skip to content

Commit b7d36e6

Browse files
committed
Fix Django deprecated 'render_to_response'
1 parent 919629b commit b7d36e6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gmn/src/d1_gmn/app/views/internal.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ def home(request):
6464

6565

6666
def home_xslt(request):
67-
return django.shortcuts.render_to_response(
68-
"home.xsl", get_context_dict(), content_type=d1_common.const.CONTENT_TYPE_XSLT
67+
return django.shortcuts.render(
68+
request, "home.xsl", get_context_dict(), content_type=d1_common.const.CONTENT_TYPE_XSLT
6969
)
7070

7171

7272
def clipboard(request, did):
73-
return django.shortcuts.render_to_response(
74-
"clipboard.xhtml", {"did": did}, content_type=d1_common.const.CONTENT_TYPE_XHTML
73+
return django.shortcuts.render(
74+
request, "clipboard.xhtml", {"did": did}, content_type=d1_common.const.CONTENT_TYPE_XHTML
7575
)
7676

7777

0 commit comments

Comments
 (0)