mirror of
https://github.com/django/django.git
synced 2025-07-26 06:34:13 +00:00
Fixed #19614 -- Missing request argument in render call.
Thanks Dima Pravdin for the report.
This commit is contained in:
parent
c9b577ead6
commit
74d72e21b4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue