summaryrefslogtreecommitdiff
path: root/docs/ref/models
diff options
context:
space:
mode:
authorAlasdair Nicol <alasdair@thenicols.net>2017-03-17 00:33:59 +0000
committerTim Graham <timograham@gmail.com>2017-03-16 20:34:15 -0400
commitd8039dfb0a228eb905fc405c4669b55e76d9ba53 (patch)
tree0b289a9ffb5867f39bbefef8fa0ae592278523f5 /docs/ref/models
parent8d5bccfe762047cc550788708322d0872a9038d4 (diff)
[1.11.x] Removed self from method signatures in docs.
Backport of 757aefc12b79bac1bab730ac465fbfd3f810b61d from master
Diffstat (limited to 'docs/ref/models')
-rw-r--r--docs/ref/models/expressions.txt2
-rw-r--r--docs/ref/models/lookups.txt4
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt
index f6f224fbdf..731a280939 100644
--- a/docs/ref/models/expressions.txt
+++ b/docs/ref/models/expressions.txt
@@ -720,7 +720,7 @@ calling the appropriate methods on the wrapped expression.
clone.expression = self.expression.relabeled_clone(change_map)
return clone
- .. method:: convert_value(self, value, expression, connection, context)
+ .. method:: convert_value(value, expression, connection, context)
A hook allowing the expression to coerce ``value`` into a more
appropriate type.
diff --git a/docs/ref/models/lookups.txt b/docs/ref/models/lookups.txt
index efa38d9a41..bd9831e23d 100644
--- a/docs/ref/models/lookups.txt
+++ b/docs/ref/models/lookups.txt
@@ -79,7 +79,7 @@ field references, aggregates, and ``Transform`` are examples that follow this
API. A class is said to follow the query expression API when it implements the
following methods:
-.. method:: as_sql(self, compiler, connection)
+.. method:: as_sql(compiler, connection)
Responsible for producing the query string and parameters for the expression.
The ``compiler`` is an ``SQLCompiler`` object, which has a ``compile()``
@@ -95,7 +95,7 @@ following methods:
override the generation of the SQL string. See :meth:`Func.as_sql` for
example usage.
-.. method:: as_vendorname(self, compiler, connection)
+.. method:: as_vendorname(compiler, connection)
Works like ``as_sql()`` method. When an expression is compiled by
``compiler.compile()``, Django will first try to call ``as_vendorname()``,