Skip to content

Commit cbed7a1

Browse files
author
quantmind
committed
refactored docs
2 parents 0ea31c2 + 957ef07 commit cbed7a1

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

docs/source/examples/query.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ Concatenating
6868
You can perform further selection by concatenating queries::
6969

7070
qs = Instrument.objects.filter(ccy=('EUR','USD')).filter(types=('equity',bond'))
71+
<<<<<<< HEAD
72+
=======
73+
74+
or equivalently::
75+
76+
qs = Instrument.objects.filter(ccy=('EUR','USD'), types=('equity',bond'))
77+
>>>>>>> 957ef07054e50920fd1640f16274e098683d3381
7178

7279
Which is equivalent to an intersection of two filter statement::
7380

@@ -133,8 +140,8 @@ This is merely a syntactic sugar in place of this equivalent query::
133140

134141
Field lookups
135142
====================
136-
137-
Filed lookups is how you refine the query method you have learned so far.
143+
144+
Field lookups is how you refine the query methods you have learned so far.
138145
They are specified by appending a suffix to the field name preceded by double underscore ``__``.
139146

140147
Numeric loopups
@@ -161,6 +168,4 @@ There are four of them:
161168
162169
qs = Position.objects.filter(size__le=100)
163170
164-
165-
166-
171+

0 commit comments

Comments
 (0)