mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #15179 -- middlewares not applied for test client login()
Requests made with django.test.Client.login() and logout() respect defaults defined in django.test.Client instantiation and are processed through middleware. Thanks to Loic for the reviews.
This commit is contained in:
committed by
Anssi Kääriäinen
parent
9348fc5628
commit
4fdd51b732
@@ -496,6 +496,11 @@ Tests
|
||||
:class:`~django.test.Client`. If ``True``, the request will be made
|
||||
through HTTPS.
|
||||
|
||||
* Requests made with :meth:`Client.login() <django.test.Client.login>` and
|
||||
:meth:`Client.logout() <django.test.Client.logout>` respect defaults defined
|
||||
in :class:`~django.test.Client` instantiation and are processed through
|
||||
middleware.
|
||||
|
||||
Backwards incompatible changes in 1.7
|
||||
=====================================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user