Fixed #19614 -- Missing request argument in render call.

Thanks Dima Pravdin for the report.
This commit is contained in:
Aymeric Augustin 2013-01-15 14:36:47 +01:00
parent c9b577ead6
commit 74d72e21b4
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ login page::
def my_view(request): def my_view(request):
if not request.user.is_authenticated(): if not request.user.is_authenticated():
return render('myapp/login_error.html') return render(request, 'myapp/login_error.html')
# ... # ...
.. currentmodule:: django.contrib.auth.decorators .. currentmodule:: django.contrib.auth.decorators