summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2012-03-30 18:03:54 +0000
committerClaude Paroz <claude@2xlibre.net>2012-03-30 18:03:54 +0000
commit35124ae3e22e590f0fd33cac75fc5ba92c0580e9 (patch)
treeee41f5c1ddc7a3bccd080088825bedfe0c0a1bc2 /docs
parent814385321bead68f7f49aa3c52b79e1cffda79ad (diff)
[1.4.X] Fixed #17999 -- Restored the links to examples from models documentation. Refs #17605.
Backport of r17832 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.4.X@17833 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/db/models.txt16
1 files changed, 12 insertions, 4 deletions
diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt
index c2577ecc98..12ae98a2b7 100644
--- a/docs/topics/db/models.txt
+++ b/docs/topics/db/models.txt
@@ -319,6 +319,8 @@ whatever you want. For example::
For details on accessing backwards-related objects, see the
:ref:`Following relationships backward example <backwards-related-objects>`.
+ For sample code, see the :doc:`Many-to-one relationship model example
+ </topics/db/examples/many_to_one>`.
Many-to-many relationships
~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -366,10 +368,13 @@ form would let users select the toppings.
.. seealso::
- :class:`~django.db.models.ManyToManyField` fields also accept a number of
- extra arguments which are explained in :ref:`the model field reference
- <manytomany-arguments>`. These options help define how the relationship
- should work; all are optional.
+ See the :doc:`Many-to-many relationship model example
+ </topics/db/examples/many_to_many>` for a full example.
+
+:class:`~django.db.models.ManyToManyField` fields also accept a number of
+extra arguments which are explained in :ref:`the model field reference
+<manytomany-arguments>`. These options help define how the relationship
+should work; all are optional.
.. _intermediary-manytomany:
@@ -555,6 +560,9 @@ can be made; see :ref:`the model field reference <ref-onetoone>` for details.
.. seealso::
+ See the :doc:`One-to-one relationship model example
+ </topics/db/examples/one_to_one>` for a full example.
+
:class:`~django.db.models.OneToOneField` fields also accept one optional argument
described in the :ref:`model field reference <ref-onetoone>`.