From 751e5fcaf7b1824c67676e8bfa6989872457bbbf Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Wed, 2 Dec 2015 23:55:50 +0000 Subject: [PATCH] [1.8.x] Fixed many spelling mistakes in code, comments, and docs. Partial backport of 93452a70e8a62c7408eeded444f5088d4a26212d from master --- django/contrib/admin/actions.py | 2 +- django/contrib/auth/context_processors.py | 2 +- django/contrib/gis/db/backends/postgis/models.py | 2 +- django/contrib/gis/db/models/query.py | 2 +- django/contrib/gis/gdal/geomtype.py | 2 +- django/contrib/gis/sitemaps/kml.py | 2 +- django/db/models/expressions.py | 2 +- django/template/defaultfilters.py | 2 +- django/template/defaulttags.py | 2 +- docs/_theme/djangodocs/static/djangodocs.css | 2 +- docs/conf.py | 2 +- docs/ref/contrib/syndication.txt | 2 +- docs/spelling_wordlist | 1 + tests/admin_changelist/tests.py | 2 +- tests/aggregation_regress/tests.py | 4 ++-- tests/auth_tests/test_forms.py | 2 +- tests/auth_tests/test_views.py | 10 +++++----- tests/check_framework/test_security.py | 6 +++--- tests/expressions_case/tests.py | 2 +- tests/forms_tests/tests/test_forms.py | 2 +- tests/forms_tests/tests/tests.py | 2 +- tests/httpwrappers/tests.py | 2 +- tests/i18n/commands/__init__.py | 2 +- tests/invalid_models_tests/test_models.py | 2 +- tests/m2m_through/tests.py | 8 ++++---- tests/middleware/tests.py | 4 ++-- tests/migrations/test_writer.py | 8 ++++---- tests/model_fields/models.py | 8 ++++---- tests/model_options/test_default_related_name.py | 2 +- tests/modeladmin/tests.py | 2 +- tests/null_fk_ordering/models.py | 4 ++-- tests/proxy_models/tests.py | 2 +- tests/queries/models.py | 2 +- tests/queries/tests.py | 6 +++--- tests/queryset_pickle/tests.py | 2 +- tests/requests/tests.py | 6 +++--- tests/serializers_regress/tests.py | 2 +- tests/signals/tests.py | 2 +- tests/staticfiles_tests/test_liveserver.py | 2 +- tests/template_tests/test_response.py | 4 ++-- tests/test_runner/test_discover_runner.py | 6 +++--- tests/timezones/tests.py | 2 +- tests/unmanaged_models/models.py | 2 +- tests/utils_tests/files/strip_tags2.txt | 2 +- tests/utils_tests/test_http.py | 4 ++-- 45 files changed, 71 insertions(+), 70 deletions(-) diff --git a/django/contrib/admin/actions.py b/django/contrib/admin/actions.py index 4445dd52fd..c4cccfd990 100644 --- a/django/contrib/admin/actions.py +++ b/django/contrib/admin/actions.py @@ -16,7 +16,7 @@ def delete_selected(modeladmin, request, queryset): """ Default action which deletes the selected objects. - This action first displays a confirmation page whichs shows all the + This action first displays a confirmation page which shows all the deleteable objects, or, if the user has no permission one of the related childs (foreignkeys), a "permission denied" message. diff --git a/django/contrib/auth/context_processors.py b/django/contrib/auth/context_processors.py index 474002e550..ce1e42d574 100644 --- a/django/contrib/auth/context_processors.py +++ b/django/contrib/auth/context_processors.py @@ -13,7 +13,7 @@ class PermLookupDict(object): return self.user.has_perm("%s.%s" % (self.app_label, perm_name)) def __iter__(self): - # To fix 'item in perms.someapp' and __getitem__ iteraction we need to + # To fix 'item in perms.someapp' and __getitem__ interaction we need to # define __iter__. See #18979 for details. raise TypeError("PermLookupDict is not iterable.") diff --git a/django/contrib/gis/db/backends/postgis/models.py b/django/contrib/gis/db/backends/postgis/models.py index 83b254cb39..68d4c188d6 100644 --- a/django/contrib/gis/db/backends/postgis/models.py +++ b/django/contrib/gis/db/backends/postgis/models.py @@ -51,7 +51,7 @@ class PostGISGeometryColumns(models.Model): class PostGISSpatialRefSys(models.Model, SpatialRefSysMixin): """ The 'spatial_ref_sys' table from PostGIS. See the PostGIS - documentaiton at Ch. 4.2.1. + documentation at Ch. 4.2.1. """ srid = models.IntegerField(primary_key=True) auth_name = models.CharField(max_length=256) diff --git a/django/contrib/gis/db/models/query.py b/django/contrib/gis/db/models/query.py index 343610c90c..c60750a5ba 100644 --- a/django/contrib/gis/db/models/query.py +++ b/django/contrib/gis/db/models/query.py @@ -500,7 +500,7 @@ class GeoQuerySet(QuerySet): SQL function to call. settings: - Dictonary of internal settings to customize for the spatial procedure. + Dictionary of internal settings to customize for the spatial procedure. Public Keyword Arguments: diff --git a/django/contrib/gis/gdal/geomtype.py b/django/contrib/gis/gdal/geomtype.py index abb184e2f9..d0dc1c0359 100644 --- a/django/contrib/gis/gdal/geomtype.py +++ b/django/contrib/gis/gdal/geomtype.py @@ -3,7 +3,7 @@ from django.utils import six class OGRGeomType(object): - "Encapulates OGR Geometry Types." + "Encapsulates OGR Geometry Types." wkb25bit = -2147483648 diff --git a/django/contrib/gis/sitemaps/kml.py b/django/contrib/gis/sitemaps/kml.py index 4dcaa8f595..83e1edcb61 100644 --- a/django/contrib/gis/sitemaps/kml.py +++ b/django/contrib/gis/sitemaps/kml.py @@ -44,7 +44,7 @@ class KMLSitemap(Sitemap): def get_urls(self, page=1, site=None, protocol=None): """ - This method is overrridden so the appropriate `geo_format` attribute + This method is overridden so the appropriate `geo_format` attribute is placed on each URL element. """ urls = Sitemap.get_urls(self, page=page, site=site, protocol=protocol) diff --git a/django/db/models/expressions.py b/django/db/models/expressions.py index 83121a9066..931a9d87d7 100644 --- a/django/db/models/expressions.py +++ b/django/db/models/expressions.py @@ -302,7 +302,7 @@ class BaseExpression(object): Does this expression contain a reference to some of the existing aggregates? If so, returns the aggregate and also the lookup parts that *weren't* found. So, if - exsiting_aggregates = {'max_id': Max('id')} + existing_aggregates = {'max_id': Max('id')} self.name = 'max_id' queryset.filter(max_id__range=[10,100]) then this method will return Max('id') and those parts of the diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py index 9324b7fb71..cd2457daf1 100644 --- a/django/template/defaultfilters.py +++ b/django/template/defaultfilters.py @@ -841,7 +841,7 @@ def default_if_none(value, arg): @register.filter(is_safe=False) def divisibleby(value, arg): - """Returns True if the value is devisible by the argument.""" + """Returns True if the value is divisible by the argument.""" return int(value) % int(arg) == 0 diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py index 09c0e72d3b..4526737ad3 100644 --- a/django/template/defaulttags.py +++ b/django/template/defaulttags.py @@ -824,7 +824,7 @@ def do_for(parser, token): than -- the following::