Skip to content

Commit 99aab7e

Browse files
committed
remove top-level indentation in queryset.rst
We're not removing all the indentation because the way it's used cleanly denotes the docs for different postfixes.
1 parent 15efb09 commit 99aab7e

File tree

1 file changed

+49
-49
lines changed

1 file changed

+49
-49
lines changed

docs/cqlengine/queryset.rst

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -119,92 +119,92 @@ Accessing objects in a QuerySet
119119
Filtering Operators
120120
===================
121121

122-
:attr:`Equal To <query.QueryOperator.EqualsOperator>`
122+
:attr:`Equal To <query.QueryOperator.EqualsOperator>`
123123

124-
The default filtering operator.
124+
The default filtering operator.
125125

126-
.. code-block:: python
126+
.. code-block:: python
127127
128-
q = Automobile.objects.filter(manufacturer='Tesla')
129-
q = q.filter(year=2012) #year == 2012
128+
q = Automobile.objects.filter(manufacturer='Tesla')
129+
q = q.filter(year=2012) #year == 2012
130130
131-
In addition to simple equal to queries, cqlengine also supports querying with other operators by appending a ``__<op>`` to the field name on the filtering call
131+
In addition to simple equal to queries, cqlengine also supports querying with other operators by appending a ``__<op>`` to the field name on the filtering call
132132

133-
:attr:`in (__in) <query.QueryOperator.InOperator>`
133+
:attr:`in (__in) <query.QueryOperator.InOperator>`
134134

135-
.. code-block:: python
135+
.. code-block:: python
136136
137-
q = Automobile.objects.filter(manufacturer='Tesla')
138-
q = q.filter(year__in=[2011, 2012])
137+
q = Automobile.objects.filter(manufacturer='Tesla')
138+
q = q.filter(year__in=[2011, 2012])
139139
140140
141-
:attr:`> (__gt) <query.QueryOperator.GreaterThanOperator>`
141+
:attr:`> (__gt) <query.QueryOperator.GreaterThanOperator>`
142142

143-
.. code-block:: python
143+
.. code-block:: python
144144
145-
q = Automobile.objects.filter(manufacturer='Tesla')
146-
q = q.filter(year__gt=2010) # year > 2010
145+
q = Automobile.objects.filter(manufacturer='Tesla')
146+
q = q.filter(year__gt=2010) # year > 2010
147147
148-
# or the nicer syntax
148+
# or the nicer syntax
149149
150-
q.filter(Automobile.year > 2010)
150+
q.filter(Automobile.year > 2010)
151151
152-
:attr:`>= (__gte) <query.QueryOperator.GreaterThanOrEqualOperator>`
152+
:attr:`>= (__gte) <query.QueryOperator.GreaterThanOrEqualOperator>`
153153

154-
.. code-block:: python
154+
.. code-block:: python
155155
156-
q = Automobile.objects.filter(manufacturer='Tesla')
157-
q = q.filter(year__gte=2010) # year >= 2010
156+
q = Automobile.objects.filter(manufacturer='Tesla')
157+
q = q.filter(year__gte=2010) # year >= 2010
158158
159-
# or the nicer syntax
159+
# or the nicer syntax
160160
161-
q.filter(Automobile.year >= 2010)
161+
q.filter(Automobile.year >= 2010)
162162
163-
:attr:`< (__lt) <query.QueryOperator.LessThanOperator>`
163+
:attr:`< (__lt) <query.QueryOperator.LessThanOperator>`
164164

165-
.. code-block:: python
165+
.. code-block:: python
166166
167-
q = Automobile.objects.filter(manufacturer='Tesla')
168-
q = q.filter(year__lt=2012) # year < 2012
167+
q = Automobile.objects.filter(manufacturer='Tesla')
168+
q = q.filter(year__lt=2012) # year < 2012
169169
170-
# or...
170+
# or...
171171
172-
q.filter(Automobile.year < 2012)
172+
q.filter(Automobile.year < 2012)
173173
174-
:attr:`<= (__lte) <query.QueryOperator.LessThanOrEqualOperator>`
174+
:attr:`<= (__lte) <query.QueryOperator.LessThanOrEqualOperator>`
175175

176-
.. code-block:: python
176+
.. code-block:: python
177177
178-
q = Automobile.objects.filter(manufacturer='Tesla')
179-
q = q.filter(year__lte=2012) # year <= 2012
178+
q = Automobile.objects.filter(manufacturer='Tesla')
179+
q = q.filter(year__lte=2012) # year <= 2012
180180
181-
q.filter(Automobile.year <= 2012)
181+
q.filter(Automobile.year <= 2012)
182182
183-
:attr:`CONTAINS (__contains) <query.QueryOperator.ContainsOperator>`
183+
:attr:`CONTAINS (__contains) <query.QueryOperator.ContainsOperator>`
184184

185-
The CONTAINS operator is available for all collection types (List, Set, Map).
185+
The CONTAINS operator is available for all collection types (List, Set, Map).
186186

187-
.. code-block:: python
187+
.. code-block:: python
188188
189-
q = Automobile.objects.filter(manufacturer='Tesla')
190-
q.filter(options__contains='backup camera').allow_filtering()
189+
q = Automobile.objects.filter(manufacturer='Tesla')
190+
q.filter(options__contains='backup camera').allow_filtering()
191191
192-
Note that we need to use allow_filtering() since the *options* column has no secondary index.
192+
Note that we need to use allow_filtering() since the *options* column has no secondary index.
193193

194-
:attr:`LIKE (__like) <query.QueryOperator.LikeOperator>`
194+
:attr:`LIKE (__like) <query.QueryOperator.LikeOperator>`
195195

196-
The LIKE operator is available for text columns that have a SASI secondary index.
196+
The LIKE operator is available for text columns that have a SASI secondary index.
197197

198-
.. code-block:: python
198+
.. code-block:: python
199199
200-
q = Automobile.objects.filter(model__like='%Civic%').allow_filtering()
200+
q = Automobile.objects.filter(model__like='%Civic%').allow_filtering()
201201
202-
Limitations:
203-
- Currently, cqlengine does not support SASI index creation. To use this feature,
204-
you need to create the SASI index using the core driver.
205-
- Queries using LIKE must use allow_filtering() since the *model* column has no
206-
standard secondary index. Note that the server will use the SASI index properly
207-
when executing the query.
202+
Limitations:
203+
- Currently, cqlengine does not support SASI index creation. To use this feature,
204+
you need to create the SASI index using the core driver.
205+
- Queries using LIKE must use allow_filtering() since the *model* column has no
206+
standard secondary index. Note that the server will use the SASI index properly
207+
when executing the query.
208208

209209
TimeUUID Functions
210210
==================

0 commit comments

Comments
 (0)