summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2016-05-04 02:30:48 +0300
committerTim Graham <timograham@gmail.com>2016-05-03 19:30:48 -0400
commit575a9a791e62de7550761970dc6797271d956c57 (patch)
treeb9efc4ac2c223fc0a10aeb7c33f6c548dba48830
parente00d77c4834b40f06f9bf271da5fdfb526ad8f56 (diff)
Normalized "an SQL" spelling.
-rw-r--r--django/db/backends/base/operations.py4
-rw-r--r--django/db/models/expressions.py2
-rw-r--r--django/db/models/fields/related_descriptors.py4
-rw-r--r--docs/howto/custom-lookups.txt4
-rw-r--r--docs/ref/models/expressions.txt2
-rw-r--r--docs/releases/1.8.txt2
-rw-r--r--docs/topics/testing/overview.txt2
-rw-r--r--tests/schema/tests.py2
8 files changed, 11 insertions, 11 deletions
diff --git a/django/db/backends/base/operations.py b/django/db/backends/base/operations.py
index fe21fd6e58..794cc15c6b 100644
--- a/django/db/backends/base/operations.py
+++ b/django/db/backends/base/operations.py
@@ -264,7 +264,7 @@ class BaseDatabaseOperations(object):
def prepare_sql_script(self, sql):
"""
- Takes a SQL script that may contain multiple lines and returns a list
+ Takes an SQL script that may contain multiple lines and returns a list
of statements to feed to successive cursor.execute() calls.
Since few databases are able to process raw SQL scripts in a single
@@ -376,7 +376,7 @@ class BaseDatabaseOperations(object):
to tables with foreign keys pointing the tables being truncated.
PostgreSQL requires a cascade even if these tables are empty.
"""
- raise NotImplementedError('subclasses of BaseDatabaseOperations must provide a sql_flush() method')
+ raise NotImplementedError('subclasses of BaseDatabaseOperations must provide an sql_flush() method')
def sequence_reset_by_name_sql(self, style, sequences):
"""
diff --git a/django/db/models/expressions.py b/django/db/models/expressions.py
index 79add29f36..b1133e24ea 100644
--- a/django/db/models/expressions.py
+++ b/django/db/models/expressions.py
@@ -472,7 +472,7 @@ class F(Combinable):
class Func(Expression):
"""
- A SQL function call.
+ An SQL function call.
"""
function = None
template = '%(function)s(%(expressions)s)'
diff --git a/django/db/models/fields/related_descriptors.py b/django/db/models/fields/related_descriptors.py
index 8599911a41..3cc7e828b1 100644
--- a/django/db/models/fields/related_descriptors.py
+++ b/django/db/models/fields/related_descriptors.py
@@ -239,7 +239,7 @@ class ForwardManyToOneDescriptor(object):
for lh_field, rh_field in self.field.related_fields:
setattr(instance, lh_field.attname, getattr(value, rh_field.attname))
- # Set the related instance cache used by __get__ to avoid a SQL query
+ # Set the related instance cache used by __get__ to avoid an SQL query
# when accessing the attribute we just set.
setattr(instance, self.cache_name, value)
@@ -406,7 +406,7 @@ class ReverseOneToOneDescriptor(object):
for index, field in enumerate(self.related.field.local_related_fields):
setattr(value, field.attname, related_pk[index])
- # Set the related instance cache used by __get__ to avoid a SQL query
+ # Set the related instance cache used by __get__ to avoid an SQL query
# when accessing the attribute we just set.
setattr(instance, self.cache_name, value)
diff --git a/docs/howto/custom-lookups.txt b/docs/howto/custom-lookups.txt
index 7d7667dc98..51a65d8ec6 100644
--- a/docs/howto/custom-lookups.txt
+++ b/docs/howto/custom-lookups.txt
@@ -67,7 +67,7 @@ We then need to define the ``as_sql`` method. This takes a ``SQLCompiler``
object, called ``compiler``, and the active database connection.
``SQLCompiler`` objects are not documented, but the only thing we need to know
about them is that they have a ``compile()`` method which returns a tuple
-containing a SQL string, and the parameters to be interpolated into that
+containing an SQL string, and the parameters to be interpolated into that
string. In most cases, you don't need to use it directly and can pass it on to
``process_lhs()`` and ``process_rhs()``.
@@ -88,7 +88,7 @@ example, ``process_lhs`` returns ``('"author"."name"', [])`` and
parameters for the left hand side, but this would depend on the object we have,
so we still need to include them in the parameters we return.
-Finally we combine the parts into a SQL expression with ``<>``, and supply all
+Finally we combine the parts into an SQL expression with ``<>``, and supply all
the parameters for the query. We then return a tuple containing the generated
SQL string and the parameters.
diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt
index aada3b448d..d29d8d05b4 100644
--- a/docs/ref/models/expressions.txt
+++ b/docs/ref/models/expressions.txt
@@ -88,7 +88,7 @@ makes it possible to refer to model field values and perform database
operations using them without actually having to pull them out of the database
into Python memory.
-Instead, Django uses the ``F()`` object to generate a SQL expression that
+Instead, Django uses the ``F()`` object to generate an SQL expression that
describes the required operation at the database level.
This is easiest to understand through an example. Normally, one might do
diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt
index 0ae2cba410..a6d425e8d8 100644
--- a/docs/releases/1.8.txt
+++ b/docs/releases/1.8.txt
@@ -651,7 +651,7 @@ Tests
* Added test client support for file uploads with file-like objects.
-* A shared cache is now used when testing with a SQLite in-memory database when
+* A shared cache is now used when testing with an SQLite in-memory database when
using Python 3.4+ and SQLite 3.7.13+. This allows sharing the database
between threads.
diff --git a/docs/topics/testing/overview.txt b/docs/topics/testing/overview.txt
index 1674a40a39..eca477bdd9 100644
--- a/docs/topics/testing/overview.txt
+++ b/docs/topics/testing/overview.txt
@@ -177,7 +177,7 @@ control the particular collation used by the test database. See the
:doc:`settings documentation </ref/settings>` for details of these
and other advanced settings.
-If using a SQLite in-memory database with Python 3.4+ and SQLite 3.7.13+,
+If using an SQLite in-memory database with Python 3.4+ and SQLite 3.7.13+,
`shared cache <https://www.sqlite.org/sharedcache.html>`_ will be enabled, so
you can write tests with ability to share the database between threads.
diff --git a/tests/schema/tests.py b/tests/schema/tests.py
index 4b715ad5bb..3a426cb74c 100644
--- a/tests/schema/tests.py
+++ b/tests/schema/tests.py
@@ -1572,7 +1572,7 @@ class SchemaTests(TransactionTestCase):
editor.create_model(Thing)
except OperationalError as e:
self.fail("Errors when applying initial migration for a model "
- "with a table named after a SQL reserved word: %s" % e)
+ "with a table named after an SQL reserved word: %s" % e)
# Check that it's there
list(Thing.objects.all())
# Clean up that table