Re: Amendment: Possible improvement to model API

2007-02-10 Thread David Abrahams
"Adrian Holovaty" <[EMAIL PROTECTED]> writes: > On 2/9/07, David Abrahams <[EMAIL PROTECTED]> wrote: >> Entry.objects.filter( >> _.headline.startswith('What') & >> ~(_.pub_date>=datetime.now()) & >> _.pub_date>=datetime(2005, 1, 1)) > > David, > > Looks like you don't like

Re: Amendment: Possible improvement to model API

2007-02-09 Thread Adrian Holovaty
On 2/9/07, David Abrahams <[EMAIL PROTECTED]> wrote: > Entry.objects.filter( > _.headline.startswith('What') & > ~(_.pub_date>=datetime.now()) & > _.pub_date>=datetime(2005, 1, 1)) David, Looks like you don't like Django's database API. Sorry you don't like it, but we can

Re: Amendment: Possible improvement to model API

2007-02-09 Thread David Abrahams
"Lawrence Oluyede" <[EMAIL PROTECTED]> writes: >> > --- >> > from django.models import field as _ >> > >> > Entry.objects.filter( >> > _.headline.startswith('What')).exclude( >> > _.pub_date>=datetime.now()).filter( >> > _.pub_date>=datetime(2005, 1, 1)) >> >> Should b

Re: Amendment: Possible improvement to model API

2007-02-09 Thread Lawrence Oluyede
> > --- > > from django.models import field as _ > > > > Entry.objects.filter( > > _.headline.startswith('What')).exclude( > > _.pub_date>=datetime.now()).filter( > > _.pub_date>=datetime(2005, 1, 1)) > > Should be: > > Entry.objects.filter( > _.headline.startswith(

Amendment: Possible improvement to model API

2007-02-09 Thread David Abrahams
David Abrahams <[EMAIL PROTECTED]> writes: > --- > from django.models import field as _ > > Entry.objects.filter( > _.headline.startswith('What')).exclude( > _.pub_date>=datetime.now()).filter( > _.pub_date>=datetime(2005, 1, 1)) Should be: Entry.objects.filter(