summaryrefslogtreecommitdiff
path: root/docs/ref/models
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/models')
-rw-r--r--docs/ref/models/fields.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index 6c9c5057c2..c50f09b401 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -1424,7 +1424,8 @@ The possible values for :attr:`~ForeignKey.on_delete` are found in
.. attribute:: ForeignKey.to_field
The field on the related object that the relation is to. By default, Django
- uses the primary key of the related object.
+ uses the primary key of the related object. If you reference a different
+ field, that field must have ``unique=True``.
.. attribute:: ForeignKey.db_constraint