summaryrefslogtreecommitdiff
path: root/django/contrib/admin/checks.py
diff options
context:
space:
mode:
authorHenry Dang <henrydangprg@gmail.com>2016-12-19 08:33:46 -0500
committerTim Graham <timograham@gmail.com>2016-12-19 08:33:46 -0500
commit6af23a4521fcf80aec7c5ee3988914423c7dfccd (patch)
tree5dc651c6a0675b0547eb175e8cd026d297f78859 /django/contrib/admin/checks.py
parent3e43d24ad36d45cace57e6a7efd34638577ae744 (diff)
Fixed #27377 -- Clarified that prepopulated_fields doesn't work with OneToOneField.
Diffstat (limited to 'django/contrib/admin/checks.py')
-rw-r--r--django/contrib/admin/checks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/checks.py b/django/contrib/admin/checks.py
index 1d802d2fbe..91fa85f0f8 100644
--- a/django/contrib/admin/checks.py
+++ b/django/contrib/admin/checks.py
@@ -399,7 +399,7 @@ class BaseModelAdminChecks(object):
return [
checks.Error(
"The value of '%s' refers to '%s', which must not be a DateTimeField, "
- "a ForeignKey, or a ManyToManyField." % (label, field_name),
+ "a ForeignKey, a OneToOneField, or a ManyToManyField." % (label, field_name),
obj=obj.__class__,
id='admin.E028',
)