fix typos in Python-style filters documentation
This commit is contained in:
committed by
GitHub
parent
c7f280d616
commit
f4b2116cb9
@ -162,7 +162,7 @@ Product.objects.filter(
|
|||||||
# sql: ( product.name = 'Test' AND product.rating >= 3.0 )
|
# sql: ( product.name = 'Test' AND product.rating >= 3.0 )
|
||||||
# OR (categories.name IN ('Toys', 'Books'))
|
# OR (categories.name IN ('Toys', 'Books'))
|
||||||
Product.objects.filter(
|
Product.objects.filter(
|
||||||
((Product.name='Test') & (Product.rating >= 3.0)) |
|
((Product.name == 'Test') & (Product.rating >= 3.0)) |
|
||||||
(Product.categories.name << ['Toys', 'Books'])
|
(Product.categories.name << ['Toys', 'Books'])
|
||||||
).get()
|
).get()
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user