Merge pull request #289 from pawamoy/patch-2
fix typos in Python-style filters documentation
This commit is contained in:
@ -162,7 +162,7 @@ Product.objects.filter(
|
||||
# sql: ( product.name = 'Test' AND product.rating >= 3.0 )
|
||||
# OR (categories.name IN ('Toys', 'Books'))
|
||||
Product.objects.filter(
|
||||
((Product.name='Test') & (Product.rating >= 3.0)) |
|
||||
((Product.name == 'Test') & (Product.rating >= 3.0)) |
|
||||
(Product.categories.name << ['Toys', 'Books'])
|
||||
).get()
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user