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:26 -0500 |
| commit | 8ce8beb3f24042ed0c3da00ef3d23c25036021ed (patch) | |
| tree | 3ad63ddb06d0d561f5a10fd4239fbd78e83df68f /docs/topics/db/examples | |
| parent | a6ef025dfb2a1d1bd23893408eef6d066fb506d9 (diff) | |
Unified some doc links to OneToOneField and ManyToManyField.
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 13c2b96c8f..5c77dc08e4 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 c3060d86bb..dd92c63519 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``:: |
