From ce586ed6931092d3a5f06df9031cdeb891793ddb Mon Sep 17 00:00:00 2001 From: David Date: Fri, 11 Mar 2022 08:11:42 +0000 Subject: Removed hyphen from pre-/re- prefixes. "prepopulate", "preload", and "preprocessing" are already in the spelling_wordlist. This also removes hyphen from double "e" combinations with "pre" and "re", e.g. preexisting, preempt, reestablish, or reenter. See also: - https://ahdictionary.com/word/search.html?q=rerun - https://ahdictionary.com/word/search.html?q=recreate - https://ahdictionary.com/word/search.html?q=predetermined - https://ahdictionary.com/word/search.html?q=reuse - https://ahdictionary.com/word/search.html?q=reopening --- docs/topics/db/optimization.txt | 2 +- docs/topics/db/queries.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/topics/db') 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 -- cgit v1.3