summaryrefslogtreecommitdiff
path: root/docs/topics/db
diff options
context:
space:
mode:
Diffstat (limited to 'docs/topics/db')
-rw-r--r--docs/topics/db/optimization.txt2
-rw-r--r--docs/topics/db/queries.txt4
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/topics/db/optimization.txt b/docs/topics/db/optimization.txt
index 166d50710f..ca04c8fd55 100644
--- a/docs/topics/db/optimization.txt
+++ b/docs/topics/db/optimization.txt
@@ -289,7 +289,7 @@ It is optimal because:
``display_group_members`` is ``False``.
#. Storing ``group.members.all()`` in the ``members`` variable allows its
- result cache to be re-used.
+ result cache to be reused.
#. The line ``if members:`` causes ``QuerySet.__bool__()`` to be called, which
causes the ``group.members.all()`` query to be run on the database. If there
diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt
index af26462367..c6349792b7 100644
--- a/docs/topics/db/queries.txt
+++ b/docs/topics/db/queries.txt
@@ -810,7 +810,7 @@ reuse it::
>>> queryset = Entry.objects.all()
>>> print([p.headline for p in queryset]) # Evaluate the query set.
- >>> print([p.pub_date for p in queryset]) # Re-use the cache from the evaluation.
+ >>> print([p.pub_date for p in queryset]) # Reuse the cache from the evaluation.
When ``QuerySet``\s are not cached
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1640,7 +1640,7 @@ instances::
b = Blog.objects.get(id=1)
b.entry_set.set([e1, e2])
-If the ``clear()`` method is available, any pre-existing objects will be
+If the ``clear()`` method is available, any preexisting objects will be
removed from the ``entry_set`` before all objects in the iterable (in this
case, a list) are added to the set. If the ``clear()`` method is *not*
available, all objects in the iterable will be added without removing any