Re: Proposal: Day of Week Filter in ORM on Date / DateTime Fields

2008-09-30 Thread Ivan Sagalaev
Malcolm Tredinnick wrote: > I've been thinking through, with a couple of different people, how we > can support extra lookup types on fields and so I'm going to reserve > judgement on this particular implementation until I have some thoughts > in order on the latter subject. In my opinion this

Re: Proposal: Day of Week Filter in ORM on Date / DateTime Fields

2008-09-29 Thread Ross Poulton
On Sep 30, 12:29 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > I've been thinking through, with a couple of different people, how we > can support extra lookup types on fields and so I'm going to reserve > judgement on this particular implementation until I have some thoughts > in order on

Re: Proposal: Day of Week Filter in ORM on Date / DateTime Fields

2008-09-29 Thread Malcolm Tredinnick
On Mon, 2008-09-29 at 18:37 -0700, Ross Poulton wrote: > When working with any calendar or event tracking information in Django > it would be useful to be able to filter for items based on day of > week: > > Event.objects.filter(event_date__week_day=1) # objects from any > month/year/date,

Re: Proposal: Day of Week Filter in ORM on Date / DateTime Fields

2008-09-29 Thread Ross Poulton
My latest patch added to ticket # 7672 works against the latest SVN checkout (r9097). All it needs in my opinion is a decision on the best way to handle Oracle dates, and testing against Oracle. Ross --~--~-~--~~~---~--~~ You received this message because you are

Proposal: Day of Week Filter in ORM on Date / DateTime Fields

2008-09-29 Thread Ross Poulton
When working with any calendar or event tracking information in Django it would be useful to be able to filter for items based on day of week: Event.objects.filter(event_date__week_day=1) # objects from any month/year/date, provided it's a Sunday will generate: SELECT ... WHERE