mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed typos in docstrings and docs.
Signed-off-by: cuinix <915115094@qq.com>
This commit is contained in:
parent
9e35c8b2e3
commit
20848bcf39
@ -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
|
for that specific storage backend. The settings in the inner dictionaries are
|
||||||
described fully in the :setting:`STORAGES` documentation.
|
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::
|
:data:`django.core.files.storage.storages` dictionary::
|
||||||
|
|
||||||
from django.core.files.storage import storages
|
from django.core.files.storage import storages
|
||||||
|
@ -218,7 +218,7 @@ class LayerMapTest(TestCase):
|
|||||||
# `unique='name'`: Creates models on the condition that they have
|
# `unique='name'`: Creates models on the condition that they have
|
||||||
# unique county names; geometries from each feature however will be
|
# unique county names; geometries from each feature however will be
|
||||||
# appended to the geometry collection of the unique model. Thus,
|
# 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.
|
# database record with a MULTIPOLYGON type.
|
||||||
lm = LayerMapping(County, co_shp, co_mapping, transform=False, unique="name")
|
lm = LayerMapping(County, co_shp, co_mapping, transform=False, unique="name")
|
||||||
lm.save(silent=True, strict=True)
|
lm.save(silent=True, strict=True)
|
||||||
|
@ -176,10 +176,7 @@ class RawQueryTests(TestCase):
|
|||||||
self.assertSuccessfulRawQuery(MixedCaseIDColumn, query, queryset)
|
self.assertSuccessfulRawQuery(MixedCaseIDColumn, query, queryset)
|
||||||
|
|
||||||
def test_order_handler(self):
|
def test_order_handler(self):
|
||||||
"""
|
"""Raw query tolerates columns being returned in any order."""
|
||||||
Test of raw raw query's tolerance for columns being returned in any
|
|
||||||
order
|
|
||||||
"""
|
|
||||||
selects = (
|
selects = (
|
||||||
("dob, last_name, first_name, id"),
|
("dob, last_name, first_name, id"),
|
||||||
("last_name, dob, first_name, id"),
|
("last_name, dob, first_name, id"),
|
||||||
|
Loading…
Reference in New Issue
Block a user