summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-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