summaryrefslogtreecommitdiff
path: root/tests/admin_checks
diff options
context:
space:
mode:
authorHasan Ramezani <hasan.r67@gmail.com>2021-03-03 14:59:45 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-03-04 08:41:28 +0100
commit1da54bfe7d4f3a2a24dc4f724a3538414a02462d (patch)
tree4b37915ade3d98fdc3e0392046b5a6fb7cde6cb4 /tests/admin_checks
parentd1f89c9b9a9b44c4dbfd24fcb5f76f16e973c0a2 (diff)
downloaddjango-1da54bfe7d4f3a2a24dc4f724a3538414a02462d.tar.gz
Corrected messages of admin checks for invalid model field names.
Diffstat (limited to 'tests/admin_checks')
-rw-r--r--tests/admin_checks/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/admin_checks/tests.py b/tests/admin_checks/tests.py
index 139b6dec59..67625c7c86 100644
--- a/tests/admin_checks/tests.py
+++ b/tests/admin_checks/tests.py
@@ -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',
)