diff options
Diffstat (limited to 'django/test/client.py')
| -rw-r--r-- | django/test/client.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/test/client.py b/django/test/client.py index 61c2136b09..42b325bd14 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -599,8 +599,7 @@ class Client(RequestFactory): """ from django.contrib.auth import authenticate user = authenticate(**credentials) - if (user and user.is_active and - apps.is_installed('django.contrib.sessions')): + if user and apps.is_installed('django.contrib.sessions'): self._login(user) return True else: |
