djongo icon indicating copy to clipboard operation
djongo copied to clipboard

Avoid unnecessary token skip

Open HeyiSun opened this issue 2 years ago • 0 comments

After parsing the statement and constructing the 'between operator', there is no need to call statement.skip().

This bug may cause the query ignores the eq filter when both eq and range filters exist. For example

queryset.filter(field_a=xxx).filter(field_b__range=[aaa, bbb])

the field_a=xxx may be ignored

HeyiSun avatar Sep 29 '22 16:09 HeyiSun