Ah, most enlightening and makes perfect sense, thanks Tom!
? 11 ?.?. 2553 21:45 Tom Evans ?:
> 2010/10/11 Jonathan Barratt :
>> On 11 ?.?. 2010, at 21:05, Sithembewena Lloyd Dube wrote:
>> Note also that, AFAIK, multiple where criteria are accomplished by chaining
>> filters rather than
@Jonathan, thanks. That does the trick.
@Tom, thanks for bringing the subtle, yet important, difference between the
two forms of that expression to my attention.
2010/10/11 Tom Evans
> 2010/10/11 Jonathan Barratt :
> > On 11 ?.?. 2010, at 21:05, Sithembewena Lloyd Dube wrote:
> > Note also that
2010/10/11 Jonathan Barratt :
> On 11 ?.?. 2010, at 21:05, Sithembewena Lloyd Dube wrote:
> Note also that, AFAIK, multiple where criteria are accomplished by chaining
> filters rather than providing them as a list to one filter call.
> But I am new to Django myself, so if anyone corrects this advi
On 11 ?.?. 2010, at 21:05, Sithembewena Lloyd Dube wrote:
> Hi all,
>
> How does one filer objects by "smaller than" criteria in the data access API?
> For example, in the following line:
I believe it's by appending the field name with _lte
> MySite.objects.filter(rank < 11, display_on_site =
Hi all,
How does one filer objects by "smaller than" criteria in the data access
API? For example, in the following line:
MySite.objects.filter(*rank < 11*, display_on_site = 1).order_by('rank') -
how would one handle the highlighted criterion?
Thanks.
--
Regards,
Sithembewena Lloyd Dube
http:
5 matches
Mail list logo