From f4b2116cb90afb797eaf4b3c567395ac3780e8d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Tue, 27 Jul 2021 13:49:31 +0200 Subject: [PATCH] fix typos in Python-style filters documentation --- docs/queries/filter-and-sort.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/queries/filter-and-sort.md b/docs/queries/filter-and-sort.md index 7f4f7d3..1f778d9 100644 --- a/docs/queries/filter-and-sort.md +++ b/docs/queries/filter-and-sort.md @@ -156,13 +156,13 @@ Some samples: ```python # sql: ( product.name = 'Test' AND product.rating >= 3.0 ) Product.objects.filter( - (Product.name == 'Test') & (Product.rating >=3.0) + (Product.name == 'Test') & (Product.rating >= 3.0) ).get() # 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() ``` @@ -851,4 +851,4 @@ objects from other side of the relation. To read more about `QuerysetProxy` visit [querysetproxy][querysetproxy] section -[querysetproxy]: ../relations/queryset-proxy.md \ No newline at end of file +[querysetproxy]: ../relations/queryset-proxy.md