Re: Django date filter

2008-12-22 Thread Daniel Roseman
On Dec 22, 12:30 pm, Aldo wrote: > Hi folks, > > Simple enough problem but cant find the functionality - if it exists. > > this_week = datetime.date.today() - timedelta(7) > Cars.objects.filter(created_date>this_week) > > I basically want to find all cars that were created in the last 7 > days. I

Django date filter

2008-12-22 Thread Aldo
Hi folks, Simple enough problem but cant find the functionality - if it exists. this_week = datetime.date.today() - timedelta(7) Cars.objects.filter(created_date>this_week) I basically want to find all cars that were created in the last 7 days. I have seen there are things for the month and yea