From 20848bcf39de891bcf865b47f6f5f550e3f21958 Mon Sep 17 00:00:00 2001 From: cuinix <915115094@qq.com> Date: Thu, 7 Mar 2024 11:23:26 +0800 Subject: [PATCH] Fixed typos in docstrings and docs. Signed-off-by: cuinix <915115094@qq.com> --- docs/howto/custom-file-storage.txt | 2 +- tests/gis_tests/layermap/tests.py | 2 +- tests/raw_query/tests.py | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/howto/custom-file-storage.txt b/docs/howto/custom-file-storage.txt index 3cc96cce84..4c9d164a0a 100644 --- a/docs/howto/custom-file-storage.txt +++ b/docs/howto/custom-file-storage.txt @@ -131,7 +131,7 @@ to refer to a specific storage throughout Django, to a dictionary of settings for that specific storage backend. The settings in the inner dictionaries are described fully in the :setting:`STORAGES` documentation. -Storages are then accessed by alias from from the +Storages are then accessed by alias from the :data:`django.core.files.storage.storages` dictionary:: from django.core.files.storage import storages diff --git a/tests/gis_tests/layermap/tests.py b/tests/gis_tests/layermap/tests.py index 283149eafc..6cc903f3ad 100644 --- a/tests/gis_tests/layermap/tests.py +++ b/tests/gis_tests/layermap/tests.py @@ -218,7 +218,7 @@ class LayerMapTest(TestCase): # `unique='name'`: Creates models on the condition that they have # unique county names; geometries from each feature however will be # appended to the geometry collection of the unique model. Thus, - # all of the various islands in Honolulu county will be in in one + # all of the various islands in Honolulu county will be in one # database record with a MULTIPOLYGON type. lm = LayerMapping(County, co_shp, co_mapping, transform=False, unique="name") lm.save(silent=True, strict=True) diff --git a/tests/raw_query/tests.py b/tests/raw_query/tests.py index 1dcc7ce740..853b7ee20e 100644 --- a/tests/raw_query/tests.py +++ b/tests/raw_query/tests.py @@ -176,10 +176,7 @@ class RawQueryTests(TestCase): self.assertSuccessfulRawQuery(MixedCaseIDColumn, query, queryset) def test_order_handler(self): - """ - Test of raw raw query's tolerance for columns being returned in any - order - """ + """Raw query tolerates columns being returned in any order.""" selects = ( ("dob, last_name, first_name, id"), ("last_name, dob, first_name, id"),