@@ -78,16 +78,16 @@ Concatenating filters
78
78
79
79
You can perform further selection by concatenating filters::
80
80
81
- qs = models.instrument.filter(ccy=('EUR','USD')).filter(types=('equity',bond'))
81
+ qs = models.instrument.filter(ccy=('EUR','USD')).filter(types=('equity',' bond'))
82
82
83
83
or equivalently::
84
84
85
- qs = models.instrument.filter(ccy=('EUR','USD'), types=('equity',bond'))
85
+ qs = models.instrument.filter(ccy=('EUR','USD'), types=('equity',' bond'))
86
86
87
87
Which is equivalent to an **intersection ** of two filter statement::
88
88
89
89
q1 = models.fund.filter(ccy=('EUR', 'USD'))
90
- q2 = models.fund.filter(types=('equity',bond'))
90
+ q2 = models.fund.filter(types=('equity',' bond'))
91
91
qs = q1.intersect(q2)
92
92
93
93
@@ -105,7 +105,7 @@ You can exclude a list of fields::
105
105
106
106
Concatenation is also supported::
107
107
108
- qs = models.instrument.exclude(ccy=('EUR','USD'), types=('equity',bond'))
108
+ qs = models.instrument.exclude(ccy=('EUR','USD'), types=('equity',' bond'))
109
109
110
110
111
111
Union
@@ -130,7 +130,7 @@ if we need all instruments with ``ccy='EUR'`` **OR** ``type='equity'``? We use t
130
130
131
131
Range lookups
132
132
====================
133
-
133
+
134
134
Range lookups is how you refine the query methods you have learned so far.
135
135
They are specified by appending a suffix to the field name preceded by
136
136
double underscore ``__ ``.
@@ -259,4 +259,4 @@ This returns the sixth through tenth objects::
259
259
260
260
This returns the last 5 objects::
261
261
262
- >> qs = models.instrument.query()[-5:]
262
+ >> qs = models.instrument.query()[-5:]
0 commit comments