Commit 74d72e21 authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

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

Thanks Dima Pravdin for the report.
parent c9b577ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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