summaryrefslogtreecommitdiff
path: root/django/contrib/admin/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/contrib/admin/forms.py')
-rw-r--r--django/contrib/admin/forms.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/contrib/admin/forms.py b/django/contrib/admin/forms.py
index 6a641c9611..e973c61972 100644
--- a/django/contrib/admin/forms.py
+++ b/django/contrib/admin/forms.py
@@ -7,13 +7,13 @@ class AdminAuthenticationForm(AuthenticationForm):
"""
A custom authentication form used in the admin app.
"""
- error_messages = dict(AuthenticationForm.error_messages)
- error_messages.update({
+ error_messages = {
+ **AuthenticationForm.error_messages,
'invalid_login': _(
"Please enter the correct %(username)s and password for a staff "
"account. Note that both fields may be case-sensitive."
),
- })
+ }
required_css_class = 'required'
def confirm_login_allowed(self, user):