Fixed #19614 -- Missing request argument in render call.
Thanks Dima Pravdin for the report.
This commit is contained in:
parent
c9b577ead6
commit
74d72e21b4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue