File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,13 @@ Concatenating
68
68
You can perform further selection by concatenating queries::
69
69
70
70
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
71
78
72
79
Which is equivalent to an intersection of two filter statement::
73
80
@@ -133,8 +140,8 @@ This is merely a syntactic sugar in place of this equivalent query::
133
140
134
141
Field lookups
135
142
====================
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.
138
145
They are specified by appending a suffix to the field name preceded by double underscore ``__ ``.
139
146
140
147
Numeric loopups
@@ -161,6 +168,4 @@ There are four of them:
161
168
162
169
qs = Position.objects.filter(size__le=100)
163
170
164
-
165
-
166
-
171
+
You can’t perform that action at this time.
0 commit comments