Ticket #4526: test_client_login_fix.diff
File test_client_login_fix.diff, 725 bytes (added by , 17 years ago) |
---|
-
client.py
228 228 are incorrect, or if the Sessions framework is not available. 229 229 """ 230 230 user = authenticate(**credentials) 231 if user and 'django.contrib.sessions' in settings.INSTALLED_APPS:231 if user and user.is_active and 'django.contrib.sessions' in settings.INSTALLED_APPS: 232 232 obj = Session.objects.get_new_session_object() 233 233 234 234 # Create a fake request to store login details … … 251 251 return True 252 252 else: 253 253 return False 254 255 No newline at end of file 254