diff --git a/django/contrib/admin/forms.py b/django/contrib/admin/forms.py
index f26c100..ea2511b 100644
|
a
|
b
|
class AdminAuthenticationForm(AuthenticationForm):
|
| 38 | 38 | " Try '%s' instead.") % user.username |
| 39 | 39 | raise forms.ValidationError(message) |
| 40 | 40 | elif not self.user_cache.is_active or not self.user_cache.is_staff: |
| | 41 | message = _("You are not allowed to enter the administration area of this website.") |
| 41 | 42 | raise forms.ValidationError(message) |
| 42 | 43 | self.check_for_test_cookie() |
| 43 | 44 | return self.cleaned_data |