On 11/05/2011 11:47, Henrik Genssen wrote:
> you should try week_day instead
> http://docs.djangoproject.com/en/dev/ref/models/querysets/#week-day
>
> regards
> Henrik
Henrik,
thanks, it works. I don't know how I missed that.
Regards,
Benedict
--
You received this message because you are sub
you should try week_day instead
http://docs.djangoproject.com/en/dev/ref/models/querysets/#week-day
regards
Henrik
>reply to message:
>date: 11.05.2011 11:38:40
>from: "Benedict Verheyen"
>to: django-users@googlegroups.com
>subject: [] Filtering on weekday
>
Hi,
I've developed a calltracking app and I would want to know how many calls we
have
on Monday, Tuesday and so on.
I would like to filter on weekdays as specified in the date module as
date.weekday()
Is there an easy way to do this?
I've tried this:
c=Call.objects.filter(date_created__day=3)
3 matches
Mail list logo