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