Kaydet (Commit) 27322df9 authored tarafından Claude Paroz's avatar Claude Paroz

Fixed #17999 -- Restored the links to examples from models documentation. Refs #17605.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@17832 bcc190cf-cafb-0310-a4f2-bffc1f526a37
üst 5dad2215
...@@ -319,6 +319,9 @@ whatever you want. For example:: ...@@ -319,6 +319,9 @@ whatever you want. For example::
For details on accessing backwards-related objects, see the For details on accessing backwards-related objects, see the
:ref:`Following relationships backward example <backwards-related-objects>`. :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 Many-to-many relationships
~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
...@@ -366,10 +369,13 @@ form would let users select the toppings. ...@@ -366,10 +369,13 @@ form would let users select the toppings.
.. seealso:: .. seealso::
:class:`~django.db.models.ManyToManyField` fields also accept a number of See the :doc:`Many-to-many relationship model example
extra arguments which are explained in :ref:`the model field reference </topics/db/examples/many_to_many>` for a full example.
<manytomany-arguments>`. These options help define how the relationship
should work; all are optional. :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: .. _intermediary-manytomany:
...@@ -555,9 +561,12 @@ can be made; see :ref:`the model field reference <ref-onetoone>` for details. ...@@ -555,9 +561,12 @@ can be made; see :ref:`the model field reference <ref-onetoone>` for details.
.. seealso:: .. seealso::
:class:`~django.db.models.OneToOneField` fields also accept one specific, See the :doc:`One-to-one relationship model example
optional ``parent_link`` argument described in the :ref:`model field </topics/db/examples/one_to_one>` for a full example.
reference <ref-onetoone>`.
:class:`~django.db.models.OneToOneField` fields also accept one specific,
optional ``parent_link`` argument described in the :ref:`model field
reference <ref-onetoone>`.
:class:`~django.db.models.OneToOneField` classes used to automatically become :class:`~django.db.models.OneToOneField` classes used to automatically become
the primary key on a model. This is no longer true (although you can manually the primary key on a model. This is no longer true (although you can manually
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment