瀏覽代碼

Described Article-Reporter relationship in many-to-one topic.

Pamela Fox 2 年之前
父節點
當前提交
8e93fc561e
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      docs/topics/db/examples/many_to_one.txt

+ 4 - 1
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