Fixed #21865 -- Incorrect signs in documented example.

Maths is hard.
This commit is contained in:
Marc Tamlyn 2014-01-23 20:32:24 +00:00
parent 89df51803e
commit 16f3a6a4c7
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ The implementation is::
lhs, lhs_params = qn.compile(self.lhs.lhs) lhs, lhs_params = qn.compile(self.lhs.lhs)
rhs, rhs_params = self.process_rhs(qn, connection) rhs, rhs_params = self.process_rhs(qn, connection)
params = lhs_params + rhs_params + lhs_params + rhs_params 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) AbsoluteValue.register_lookup(AbsoluteValueLessThan)