mirror of
https://github.com/django/django.git
synced 2024-12-25 02:26:12 +00:00
Fixed #21864 -- Fixed missing quote in custom lookup example.
Thanks to Chris Barna for the report.
This commit is contained in:
parent
12303ab738
commit
d7ce48f175
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user