fix typos in Python-style filters documentation

This commit is contained in:
Timothée Mazzucotelli
2021-07-27 13:49:31 +02:00
committed by GitHub
parent c7f280d616
commit f4b2116cb9

View File

@ -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()
``` ```