summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-01-15 14:36:47 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-01-15 14:36:47 +0100
commit74d72e21b405956bec9775b90e052e89f03a5e2e (patch)
tree41bcb8ceea74c1cb4884c2a5403f521ea713ea15
parentc9b577ead6ca9a96e2066fd739b7c340dae5ca3a (diff)
Fixed #19614 -- Missing request argument in render call.
Thanks Dima Pravdin for the report.
-rw-r--r--docs/topics/auth/default.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt
index 82cabadbec..d1463c645b 100644
--- a/docs/topics/auth/default.txt
+++ b/docs/topics/auth/default.txt
@@ -372,7 +372,7 @@ login page::
def my_view(request):
if not request.user.is_authenticated():
- return render('myapp/login_error.html')
+ return render(request, 'myapp/login_error.html')
# ...
.. currentmodule:: django.contrib.auth.decorators