diff options
| author | Tim Graham <timograham@gmail.com> | 2016-02-01 11:02:26 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-02-01 11:02:53 -0500 |
| commit | 0495f44b8d7f971f228a5e180ab9bc4b08cf57c6 (patch) | |
| tree | 8fe5dcd1e9066937e097ccf3ba45522f2eab9d3c /docs/topics/db/examples | |
| parent | 5d978390393ebaa057def1b4e429a292806e4b5f (diff) | |
[1.9.x] Unified some doc links to OneToOneField and ManyToManyField.
Backport of 8ce8beb3f24042ed0c3da00ef3d23c25036021ed from master
Diffstat (limited to 'docs/topics/db/examples')
| -rw-r--r-- | docs/topics/db/examples/many_to_many.txt | 3 | ||||
| -rw-r--r-- | docs/topics/db/examples/one_to_one.txt | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/docs/topics/db/examples/many_to_many.txt b/docs/topics/db/examples/many_to_many.txt index 4fcd36cbd6..b9b1b4a2ce 100644 --- a/docs/topics/db/examples/many_to_many.txt +++ b/docs/topics/db/examples/many_to_many.txt @@ -4,7 +4,8 @@ Many-to-many relationships .. highlight:: pycon -To define a many-to-many relationship, use :ref:`ref-manytomany`. +To define a many-to-many relationship, use +:class:`~django.db.models.ManyToManyField`. In this example, an ``Article`` can be published in multiple ``Publication`` objects, and a ``Publication`` has multiple ``Article`` objects: diff --git a/docs/topics/db/examples/one_to_one.txt b/docs/topics/db/examples/one_to_one.txt index 8d7fb7de26..43bb2fcc62 100644 --- a/docs/topics/db/examples/one_to_one.txt +++ b/docs/topics/db/examples/one_to_one.txt @@ -2,7 +2,8 @@ One-to-one relationships ======================== -To define a one-to-one relationship, use :ref:`ref-onetoone`. +To define a one-to-one relationship, use +:class:`~django.db.models.OneToOneField`. In this example, a ``Place`` optionally can be a ``Restaurant``:: |
