summaryrefslogtreecommitdiff
path: root/docs/howto
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:31:07 -0400
commitfef3f50e319bd691c8fd3313d982b6c07d66445c (patch)
tree3a8ac7f06b192f4df52628d1fca371e92a1f7e87 /docs/howto
parent3c6b9f0bbd5e37099c4751cdd2a08db508d66e54 (diff)
[1.9.x] Normalized "an SQL" spelling.
Backport of 575a9a791e62de7550761970dc6797271d956c57 from master
Diffstat (limited to 'docs/howto')
-rw-r--r--docs/howto/custom-lookups.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/howto/custom-lookups.txt b/docs/howto/custom-lookups.txt
index 87a388283a..0f34534182 100644
--- a/docs/howto/custom-lookups.txt
+++ b/docs/howto/custom-lookups.txt
@@ -71,7 +71,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()``.
@@ -92,7 +92,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.