diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-04-26 10:18:45 -0700 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-04-26 10:18:45 -0700 |
| commit | 2bcb8bfc8de5cd57ebb64b326cd7609aa0d8c1c7 (patch) | |
| tree | 6c0dc4b5f0d4dbcae6c181efc2b346799ac5caf3 /django/db | |
| parent | 8b5b199e20ad2d8d3e91873ce0cd5d3035e05ece (diff) | |
Fix many many typos in comments throughout the codebase
Diffstat (limited to 'django/db')
| -rw-r--r-- | django/db/backends/__init__.py | 2 | ||||
| -rw-r--r-- | django/db/models/fields/files.py | 2 | ||||
| -rw-r--r-- | django/db/models/query.py | 10 | ||||
| -rw-r--r-- | django/db/models/sql/compiler.py | 2 | ||||
| -rw-r--r-- | django/db/models/sql/datastructures.py | 2 | ||||
| -rw-r--r-- | django/db/models/sql/expressions.py | 4 | ||||
| -rw-r--r-- | django/db/models/sql/query.py | 8 | ||||
| -rw-r--r-- | django/db/models/sql/where.py | 2 |
8 files changed, 16 insertions, 16 deletions
diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index b0bb9ad9bd..e9d644e506 100644 --- a/django/db/backends/__init__.py +++ b/django/db/backends/__init__.py @@ -890,7 +890,7 @@ class BaseDatabaseOperations(object): if _allow_fallback: # Without sqlparse, fall back to the legacy (and buggy) logic. warnings.warn( - "Providing intial SQL data on a %s database will require " + "Providing initial SQL data on a %s database will require " "sqlparse in Django 1.9." % self.connection.vendor, RemovedInDjango19Warning) from django.core.management.sql import _split_statements diff --git a/django/db/models/fields/files.py b/django/db/models/fields/files.py index 6cb49db24a..518008b28d 100644 --- a/django/db/models/fields/files.py +++ b/django/db/models/fields/files.py @@ -429,7 +429,7 @@ class ImageField(FileField): Dimensions can be forced to update with force=True, which is how ImageFileDescriptor.__set__ calls this method. """ - # Nothing to update if the field doesn't have have dimension fields. + # Nothing to update if the field doesn't have dimension fields. has_dimension_fields = self.width_field or self.height_field if not has_dimension_fields: return diff --git a/django/db/models/query.py b/django/db/models/query.py index a555e98c1a..a1ff38e784 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -757,8 +757,8 @@ class QuerySet(object): evaluated. When prefetch_related() is called more than once, the list of lookups to - prefetch is appended to. If prefetch_related(None) is called, the - the list is cleared. + prefetch is appended to. If prefetch_related(None) is called, the list + is cleared. """ clone = self._clone() if lookups == (None,): @@ -869,7 +869,7 @@ class QuerySet(object): def using(self, alias): """ - Selects which database this QuerySet should excecute its query against. + Selects which database this QuerySet should execute its query against. """ clone = self._clone() clone._db = alias @@ -1599,7 +1599,7 @@ class RawQuerySet(object): def using(self, alias): """ - Selects which database this Raw QuerySet should excecute it's query against. + Selects which database this Raw QuerySet should execute its query against. """ return RawQuerySet(self.raw_query, model=self.model, query=self.query.clone(using=alias), @@ -1621,7 +1621,7 @@ class RawQuerySet(object): index = self._columns.index(query_name) self._columns[index] = model_name except ValueError: - # Ignore translations for non-existant column names + # Ignore translations for non-existent column names pass return self._columns diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index 9351169357..09b1f7d4d8 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -1132,7 +1132,7 @@ class SQLDateTimeCompiler(SQLCompiler): datetime = self.resolve_columns(row, fields)[offset] elif needs_string_cast: datetime = typecast_timestamp(str(datetime)) - # Datetimes are artifically returned in UTC on databases that + # Datetimes are artificially returned in UTC on databases that # don't support time zone. Restore the zone used in the query. if settings.USE_TZ: if datetime is None: diff --git a/django/db/models/sql/datastructures.py b/django/db/models/sql/datastructures.py index 634edf2477..f47e25208c 100644 --- a/django/db/models/sql/datastructures.py +++ b/django/db/models/sql/datastructures.py @@ -1,5 +1,5 @@ """ -Useful auxilliary data structures for query construction. Not useful outside +Useful auxiliary data structures for query construction. Not useful outside the SQL domain. """ diff --git a/django/db/models/sql/expressions.py b/django/db/models/sql/expressions.py index e31eaa8a2f..70646cfc61 100644 --- a/django/db/models/sql/expressions.py +++ b/django/db/models/sql/expressions.py @@ -40,7 +40,7 @@ class SQLEvaluator(object): return self.expression.evaluate(self, qn, connection) ##################################################### - # Vistor methods for initial expression preparation # + # Visitor methods for initial expression preparation # ##################################################### def prepare_node(self, node, query, allow_joins): @@ -72,7 +72,7 @@ class SQLEvaluator(object): [f.name for f in self.opts.fields])) ################################################## - # Vistor methods for final expression evaluation # + # Visitor methods for final expression evaluation # ################################################## def evaluate_node(self, node, qn, connection): diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index 28003611ff..92bfdb1881 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -199,7 +199,7 @@ class Query(object): def sql_with_params(self): """ Returns the query as an SQL string and the parameters that will be - subsituted into the query. + substituted into the query. """ return self.get_compiler(DEFAULT_DB_ALIAS).as_sql() @@ -675,7 +675,7 @@ class Query(object): alias = '%s%d' % (self.alias_prefix, len(self.alias_map) + 1) current.append(alias) else: - # The first occurence of a table uses the table name directly. + # The first occurrence of a table uses the table name directly. alias = table_name self.table_map[alias] = [alias] self.alias_refcount[alias] = 1 @@ -1242,7 +1242,7 @@ class Query(object): """ having_parts = [] for c in q_object.children[:]: - # When constucting the having nodes we need to take care to + # When constructing the having nodes we need to take care to # preserve the negation status from the upper parts of the tree if isinstance(c, Node): # For each negated child, flip the in_negated flag. @@ -1802,7 +1802,7 @@ class Query(object): """ If any fields are marked to be deferred, returns a dictionary mapping models to a set of names in those fields that will be loaded. If a - model is not in the returned dictionary, none of it's fields are + model is not in the returned dictionary, none of its fields are deferred. If no fields are marked for deferral, returns an empty dictionary. diff --git a/django/db/models/sql/where.py b/django/db/models/sql/where.py index 0fedb771b7..f65e593a3a 100644 --- a/django/db/models/sql/where.py +++ b/django/db/models/sql/where.py @@ -66,7 +66,7 @@ class WhereNode(tree.Node): # emptiness and transform any non-empty values correctly. value = list(value) - # The "value_annotation" parameter is used to pass auxilliary information + # The "value_annotation" parameter is used to pass auxiliary information # about the value(s) to the query construction. Specifically, datetime # and empty values need special handling. Other types could be used # here in the future (using Python types is suggested for consistency). |
