summaryrefslogtreecommitdiff
path: root/docs/topics/db/examples
diff options
context:
space:
mode:
authorClifford Gama <53076065+cliff688@users.noreply.github.com>2025-03-13 20:18:35 +0200
committerGitHub <noreply@github.com>2025-03-13 15:18:35 -0300
commitefe3ca09e029c63e25f6e19843cb0c68cc7fa816 (patch)
treedfa385b0b2fea4caa7292915eb0a8b92b00e9b30 /docs/topics/db/examples
parente7a9d756eedd0317132c81c3695d4a34bba5dcd3 (diff)
Fixed incorrect formatting for inline pluralized code references in docs.
Diffstat (limited to 'docs/topics/db/examples')
-rw-r--r--docs/topics/db/examples/many_to_many.txt14
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/topics/db/examples/many_to_many.txt b/docs/topics/db/examples/many_to_many.txt
index 2c22faaf9a..38838bb1b8 100644
--- a/docs/topics/db/examples/many_to_many.txt
+++ b/docs/topics/db/examples/many_to_many.txt
@@ -36,7 +36,7 @@ objects, and a ``Publication`` has multiple ``Article`` objects:
What follows are examples of operations that can be performed using the Python
API facilities.
-Create a few ``Publications``:
+Create a few ``Publication`` instances:
.. code-block:: pycon
@@ -74,7 +74,7 @@ Associate the ``Article`` with a ``Publication``:
>>> a1.publications.add(p1)
-Create another ``Article``, and set it to appear in the ``Publications``:
+Create another ``Article``, and set it to appear in its publications:
.. code-block:: pycon
@@ -196,7 +196,8 @@ involved is a little complex):
>>> Article.objects.exclude(publications=p2)
<QuerySet [<Article: Django lets you build web apps easily>]>
-If we delete a ``Publication``, its ``Articles`` won't be able to access it:
+If we delete a ``Publication``, its related ``Article`` instances won't be able
+to access it:
.. code-block:: pycon
@@ -207,7 +208,8 @@ If we delete a ``Publication``, its ``Articles`` won't be able to access it:
>>> a1.publications.all()
<QuerySet []>
-If we delete an ``Article``, its ``Publications`` won't be able to access it:
+If we delete an ``Article``, its related ``Publication`` instances won't be
+able to access it:
.. code-block:: pycon
@@ -303,8 +305,8 @@ Recreate the ``Article`` and ``Publication`` we have deleted:
>>> a2.save()
>>> a2.publications.add(p1, p2, p3)
-Bulk delete some ``Publications`` - references to deleted publications should
-go:
+Bulk delete some ``Publication`` instances, and the references to deleted
+publications will no longer be included in the related entries:
.. code-block:: pycon