summaryrefslogtreecommitdiff
path: root/django/contrib
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 /django/contrib
parentd1f89c9b9a9b44c4dbfd24fcb5f76f16e973c0a2 (diff)
downloaddjango-1da54bfe7d4f3a2a24dc4f724a3538414a02462d.tar.gz
Corrected messages of admin checks for invalid model field names.
Diffstat (limited to 'django/contrib')
-rw-r--r--django/contrib/admin/checks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/admin/checks.py b/django/contrib/admin/checks.py
index fea5e24b7c..35760a1177 100644
--- a/django/contrib/admin/checks.py
+++ b/django/contrib/admin/checks.py
@@ -1129,8 +1129,8 @@ def must_inherit_from(parent, option, obj, id):
def refer_to_missing_field(field, option, obj, id):
return [
checks.Error(
- "The value of '%s' refers to '%s', which is not an attribute of "
- "'%s'." % (option, field, obj.model._meta.label),
+ "The value of '%s' refers to '%s', which is not a field of '%s'."
+ % (option, field, obj.model._meta.label),
obj=obj.__class__,
id=id,
),