Skip to content

Commit ef3edd4

Browse files
authored
Merge pull request #289 from pawamoy/patch-2
fix typos in Python-style filters documentation
2 parents c7f280d + f4b2116 commit ef3edd4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎docs/queries/filter-and-sort.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,13 +156,13 @@ Some samples:
156156
```python
157157
# sql: ( product.name = 'Test' AND product.rating >= 3.0 )
158158
Product.objects.filter(
159-
(Product.name == 'Test') & (Product.rating >=3.0)
159+
(Product.name == 'Test') & (Product.rating >= 3.0)
160160
).get()
161161

162162
# sql: ( product.name = 'Test' AND product.rating >= 3.0 )
163163
# OR (categories.name IN ('Toys', 'Books'))
164164
Product.objects.filter(
165-
((Product.name='Test') & (Product.rating >= 3.0)) |
165+
((Product.name == 'Test') & (Product.rating >= 3.0)) |
166166
(Product.categories.name << ['Toys', 'Books'])
167167
).get()
168168
```
@@ -851,4 +851,4 @@ objects from other side of the relation.
851851
To read more about `QuerysetProxy` visit [querysetproxy][querysetproxy] section
852852

853853

854-
[querysetproxy]: ../relations/queryset-proxy.md
854+
[querysetproxy]: ../relations/queryset-proxy.md

0 commit comments

Comments
 (0)