summaryrefslogtreecommitdiff
path: root/docs
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 /docs
parent3e43d24ad36d45cace57e6a7efd34638577ae744 (diff)
Fixed #27377 -- Clarified that prepopulated_fields doesn't work with OneToOneField.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/checks.txt4
-rw-r--r--docs/ref/contrib/admin/index.txt2
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt
index 1f35c5bb0f..3b16921e52 100644
--- a/docs/ref/checks.txt
+++ b/docs/ref/checks.txt
@@ -343,8 +343,8 @@ with the admin site:
* **admin.E027**: The value of ``prepopulated_fields`` refers to
``<field name>``, which is not an attribute of ``<model>``.
* **admin.E028**: The value of ``prepopulated_fields`` refers to
- ``<field name>``, which must not be a ``DateTimeField``, a ``ForeignKey``, or a
- ``ManyToManyField`` field.
+ ``<field name>``, which must not be a ``DateTimeField``, a ``ForeignKey``,
+ a ``OneToOneField``, or a ``ManyToManyField`` field.
* **admin.E029**: The value of ``prepopulated_fields[<field name>]`` must be a
list or tuple.
* **admin.E030**: The value of ``prepopulated_fields`` refers to
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index 59d756db99..e30076b487 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -1059,7 +1059,7 @@ subclass::
slug (e.g. substituting dashes for spaces).
``prepopulated_fields`` doesn't accept ``DateTimeField``, ``ForeignKey``,
- nor ``ManyToManyField`` fields.
+ ``OneToOneField``, and ``ManyToManyField`` fields.
.. attribute:: ModelAdmin.preserve_filters