Loading docs/ref/models/fields.txt +0 −4 Original line number Diff line number Diff line Loading @@ -1386,8 +1386,6 @@ The possible values for :attr:`~ForeignKey.on_delete` are found in If in doubt, leave it to its default of ``True``. .. _ref-manytomany: ``ManyToManyField`` ------------------- Loading Loading @@ -1591,8 +1589,6 @@ that control how the relationship functions. :attr:`~Field.null` has no effect since there is no way to require a relationship at the database level. .. _ref-onetoone: ``OneToOneField`` ----------------- Loading docs/releases/1.7.txt +2 −2 Original line number Diff line number Diff line Loading @@ -76,8 +76,8 @@ but a few of the key features are: <test-case-serialized-rollback>`. * It is not advised to have apps without migrations depend on (have a :ref:`ForeignKey <ref-foreignkey>` or :ref:`ManyToManyField <ref-manytomany>` to) apps with migrations. :class:`~django.db.models.ForeignKey` or :class:`~django.db.models.ManyToManyField` to) apps with migrations. .. _app-loading-refactor-17-release-note: Loading docs/topics/auth/customizing.txt +2 −2 Original line number Diff line number Diff line Loading @@ -300,8 +300,8 @@ change to what is stored in the database, you can create a :ref:`proxy model allows for any of the features offered by proxy models including default ordering, custom managers, or custom model methods. If you wish to store information related to ``User``, you can use a :ref:`one-to-one relationship <ref-onetoone>` to a model containing the fields for If you wish to store information related to ``User``, you can use a :class:`~django.db.models.OneToOneField` to a model containing the fields for additional information. This one-to-one model is often called a profile model, as it might store non-auth related information about a site user. For example you might create an Employee model:: Loading docs/topics/db/examples/many_to_many.txt +2 −1 Original line number Diff line number Diff line Loading @@ -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: Loading docs/topics/db/examples/one_to_one.txt +2 −1 Original line number Diff line number Diff line Loading @@ -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``:: Loading Loading
docs/ref/models/fields.txt +0 −4 Original line number Diff line number Diff line Loading @@ -1386,8 +1386,6 @@ The possible values for :attr:`~ForeignKey.on_delete` are found in If in doubt, leave it to its default of ``True``. .. _ref-manytomany: ``ManyToManyField`` ------------------- Loading Loading @@ -1591,8 +1589,6 @@ that control how the relationship functions. :attr:`~Field.null` has no effect since there is no way to require a relationship at the database level. .. _ref-onetoone: ``OneToOneField`` ----------------- Loading
docs/releases/1.7.txt +2 −2 Original line number Diff line number Diff line Loading @@ -76,8 +76,8 @@ but a few of the key features are: <test-case-serialized-rollback>`. * It is not advised to have apps without migrations depend on (have a :ref:`ForeignKey <ref-foreignkey>` or :ref:`ManyToManyField <ref-manytomany>` to) apps with migrations. :class:`~django.db.models.ForeignKey` or :class:`~django.db.models.ManyToManyField` to) apps with migrations. .. _app-loading-refactor-17-release-note: Loading
docs/topics/auth/customizing.txt +2 −2 Original line number Diff line number Diff line Loading @@ -300,8 +300,8 @@ change to what is stored in the database, you can create a :ref:`proxy model allows for any of the features offered by proxy models including default ordering, custom managers, or custom model methods. If you wish to store information related to ``User``, you can use a :ref:`one-to-one relationship <ref-onetoone>` to a model containing the fields for If you wish to store information related to ``User``, you can use a :class:`~django.db.models.OneToOneField` to a model containing the fields for additional information. This one-to-one model is often called a profile model, as it might store non-auth related information about a site user. For example you might create an Employee model:: Loading
docs/topics/db/examples/many_to_many.txt +2 −1 Original line number Diff line number Diff line Loading @@ -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: Loading
docs/topics/db/examples/one_to_one.txt +2 −1 Original line number Diff line number Diff line Loading @@ -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``:: Loading