summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Alla <bruno.alla@founders4schools.org.uk>2015-12-08 18:31:55 +0000
committerTim Graham <timograham@gmail.com>2015-12-11 08:45:14 -0500
commitc0c2c7ecd6780b1207b18d96a60c807dbb98eb81 (patch)
tree10f20b9bb0929cbde20fed124b84ee0f5bb0f5f4
parentf179d35f54dabcd58357110d966aa9fb3e70b2ab (diff)
[1.8.x] Fixed #25893 -- Corrected custom lookups example.
Backport of ffcdb0b471d0afc72b42b0a2b0c0c4fb45d7b6b1 from master
-rw-r--r--docs/howto/custom-lookups.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/howto/custom-lookups.txt b/docs/howto/custom-lookups.txt
index 6b9545a568..1878a65058 100644
--- a/docs/howto/custom-lookups.txt
+++ b/docs/howto/custom-lookups.txt
@@ -202,10 +202,10 @@ The implementation is::
There are a couple of notable things going on. First, ``AbsoluteValueLessThan``
isn't calling ``process_lhs()``. Instead it skips the transformation of the
``lhs`` done by ``AbsoluteValue`` and uses the original ``lhs``. That is, we
-want to get ``27`` not ``ABS(27)``. Referring directly to ``self.lhs.lhs`` is
-safe as ``AbsoluteValueLessThan`` can be accessed only from the
-``AbsoluteValue`` lookup, that is the ``lhs`` is always an instance of
-``AbsoluteValue``.
+want to get ``"experiments"."change"`` not ``ABS("experiments"."change")``.
+Referring directly to ``self.lhs.lhs`` is safe as ``AbsoluteValueLessThan``
+can be accessed only from the ``AbsoluteValue`` lookup, that is the ``lhs``
+is always an instance of ``AbsoluteValue``.
Notice also that as both sides are used multiple times in the query the params
need to contain ``lhs_params`` and ``rhs_params`` multiple times.