summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPamela Fox <pamela.fox@gmail.com>2022-09-14 11:32:56 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-09-15 10:49:23 +0200
commit05ace24d8203787b742c6597957cde4274a40fd2 (patch)
treea34d37668717ccd4b7ee05fd30f1dc5b232cd76c
parentbe5e3b46f78d54f8fae5dc255295d771c2becaac (diff)
[4.1.x] Described Article-Reporter relationship in many-to-one topic.
Backport of 8e93fc561e4ead282abe2a12bd6ac393c9d308be from main
-rw-r--r--docs/topics/db/examples/many_to_one.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/topics/db/examples/many_to_one.txt b/docs/topics/db/examples/many_to_one.txt
index bb4202ab66..e91f7e8a11 100644
--- a/docs/topics/db/examples/many_to_one.txt
+++ b/docs/topics/db/examples/many_to_one.txt
@@ -2,7 +2,10 @@
Many-to-one relationships
=========================
-To define a many-to-one relationship, use :class:`~django.db.models.ForeignKey`::
+To define a many-to-one relationship, use :class:`~django.db.models.ForeignKey`.
+
+In this example, a ``Reporter`` can be associated with many ``Article``
+objects, but an ``Article`` can only have one ``Reporter`` object::
from django.db import models