diff options
| author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2014-01-23 20:32:24 +0000 |
|---|---|---|
| committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2014-01-23 20:32:24 +0000 |
| commit | 16f3a6a4c7bab11644d11c2be029374e5095cb56 (patch) | |
| tree | 56b2ea81c7c10a91cb32a8e25b2361ed4b34d9d8 /docs | |
| parent | 89df51803ef6e3990fbe7854818a3a3361639568 (diff) | |
Fixed #21865 -- Incorrect signs in documented example.
Maths is hard.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/custom-lookups.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/custom-lookups.txt b/docs/ref/models/custom-lookups.txt index f735752e0e..38608180f1 100644 --- a/docs/ref/models/custom-lookups.txt +++ b/docs/ref/models/custom-lookups.txt @@ -162,7 +162,7 @@ The implementation is:: lhs, lhs_params = qn.compile(self.lhs.lhs) rhs, rhs_params = self.process_rhs(qn, connection) params = lhs_params + rhs_params + lhs_params + rhs_params - return '%s > %s AND %s < -%s' % (lhs, rhs, lhs, rhs), params + return '%s < %s AND %s > -%s' % (lhs, rhs, lhs, rhs), params AbsoluteValue.register_lookup(AbsoluteValueLessThan) |
