1
0
mirror of https://github.com/django/django.git synced 2025-10-28 16:16:12 +00:00

Corrected messages of admin checks for invalid model field names.

This commit is contained in:
Hasan Ramezani
2021-03-03 14:59:45 +01:00
committed by Mariusz Felisiak
parent d1f89c9b9a
commit 1da54bfe7d
4 changed files with 21 additions and 21 deletions

View File

@@ -309,7 +309,7 @@ class SystemChecksTestCase(SimpleTestCase):
self.assertEqual(SongAdmin(Song, AdminSite()).check(), [
checks.Error(
"The value of 'list_editable[0]' refers to 'test', which is "
"not an attribute of 'admin_checks.Song'.",
"not a field of 'admin_checks.Song'.",
obj=SongAdmin,
id='admin.E121',
)
@@ -618,7 +618,7 @@ class SystemChecksTestCase(SimpleTestCase):
expected = [
checks.Error(
"The value of 'raw_id_fields[0]' refers to 'nonexistent', "
"which is not an attribute of 'admin_checks.Album'.",
"which is not a field of 'admin_checks.Album'.",
obj=RawIdNonexistentAdmin,
id='admin.E002',
)