From 521772ff0779ced13f94a6ebcd96740a9eafbb1d Mon Sep 17 00:00:00 2001 From: Ed Henderson Date: Thu, 2 Jun 2016 12:56:13 -0700 Subject: [1.10.x] Fixed #26021 -- Applied hanging indentation to docs. Backport of 4a4d7f980e2a66756e1e424f7648dcd28ff765b7 from master --- docs/topics/http/shortcuts.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'docs/topics/http') diff --git a/docs/topics/http/shortcuts.txt b/docs/topics/http/shortcuts.txt index af2da254fb..705de11b69 100644 --- a/docs/topics/http/shortcuts.txt +++ b/docs/topics/http/shortcuts.txt @@ -66,8 +66,9 @@ MIME type :mimetype:`application/xhtml+xml`:: def my_view(request): # View code here... - return render(request, 'myapp/index.html', {"foo": "bar"}, - content_type="application/xhtml+xml") + return render(request, 'myapp/index.html', { + 'foo': 'bar', + }, content_type='application/xhtml+xml') This example is equivalent to:: @@ -78,8 +79,7 @@ This example is equivalent to:: # View code here... t = loader.get_template('myapp/index.html') c = {'foo': 'bar'} - return HttpResponse(t.render(c, request), - content_type="application/xhtml+xml") + return HttpResponse(t.render(c, request), content_type='application/xhtml+xml') ``render_to_response()`` ======================== -- cgit v1.3