@@ -53,15 +53,15 @@ notes = await Note.objects.filter(completed=True).all()
5353
5454There are some special operators defined automatically on every column:
5555
56- - ` in ` - SQL ` IN ` operator.
57- - ` exact ` - filter instances matching exact value.
58- - ` iexact ` - same as ` exact ` but case-insensitive.
59- - ` contains ` - filter instances containing value.
60- - ` icontains ` - same as ` contains ` but case-insensitive.
61- - ` lt ` - filter instances having value ` Less Than ` .
62- - ` lte ` - filter instances having value ` Less Than Equal ` .
63- - ` gt ` - filter instances having value ` Greater Than ` .
64- - ` gte ` - filter instances having value ` Greater Than Equal ` .
56+ * ` in ` - SQL ` IN ` operator.
57+ * ` exact ` - filter instances matching exact value.
58+ * ` iexact ` - same as ` exact ` but case-insensitive.
59+ * ` contains ` - filter instances containing value.
60+ * ` icontains ` - same as ` contains ` but case-insensitive.
61+ * ` lt ` - filter instances having value ` Less Than ` .
62+ * ` lte ` - filter instances having value ` Less Than Equal ` .
63+ * ` gt ` - filter instances having value ` Greater Than ` .
64+ * ` gte ` - filter instances having value ` Greater Than Equal ` .
6565
6666Example usage:
6767
@@ -84,7 +84,7 @@ notes = await Note.objects.filter(Note.columns.id.in_([1, 2, 3])).all()
8484Here ` Note.columns ` refers to the columns of the underlying SQLAlchemy table.
8585
8686!!! note
87- Note that ` Note.columns ` returns SQLAlchemy table columns, whereas ` Note.fields ` returns ` orm ` fields.
87+ Note that ` Note.columns ` returns SQLAlchemy table columns, whereas ` Note.fields ` returns ` orm ` fields.
8888
8989### .limit()
9090
@@ -119,7 +119,7 @@ notes = await Note.objects.order_by("text", "-id").all()
119119```
120120
121121!!! note
122- This will sort by ascending ` text ` and descending ` id ` .
122+ This will sort by ascending ` text ` and descending ` id ` .
123123
124124## Returning results
125125
@@ -209,7 +209,7 @@ note = await Note.objects.get(id=1)
209209```
210210
211211!!! note
212- ` .get() ` expects to find only one instance. This can raise ` NoMatch ` or ` MultipleMatches ` .
212+ ` .get() ` expects to find only one instance. This can raise ` NoMatch ` or ` MultipleMatches ` .
213213
214214### .update()
215215
@@ -262,7 +262,7 @@ This will query a `Note` with `text` as `"Going to car wash"`,
262262if it doesn't exist, it will use ` defaults ` argument to create the new instance.
263263
264264!!! note
265- Since ` get_or_create() ` is doing a [ get()] ( #get ) , it can raise ` MultipleMatches ` exception.
265+ Since ` get_or_create() ` is doing a [ get()] ( #get ) , it can raise ` MultipleMatches ` exception.
266266
267267### .update_or_create()
268268
@@ -280,4 +280,4 @@ if an instance is found, it will use the `defaults` argument to update the insta
280280If it matches no records, it will use the comibnation of arguments to create the new instance.
281281
282282!!! note
283- Since ` update_or_create() ` is doing a [ get()] ( #get ) , it can raise ` MultipleMatches ` exception.
283+ Since ` update_or_create() ` is doing a [ get()] ( #get ) , it can raise ` MultipleMatches ` exception.
0 commit comments