diff options
Diffstat (limited to 'django/test/client.py')
| -rw-r--r-- | django/test/client.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/test/client.py b/django/test/client.py index ce74a5fe53..41fe9e627b 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -611,6 +611,7 @@ class ClientMixin: def _login(self, user, backend=None): from django.contrib.auth import login + # Create a fake request to store login details. request = HttpRequest() if self.session: |
