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" <benedict.verhe...@gmail.com> >to: django-users@googlegroups.com >subject: [<django-users.googlegroups.com>] 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) > >But it's not correct as this displays all calls made on any 3rd of the month >instead >of the 3rd of the week. > >Thanks, >Benedict > >-- >You received this message because you are subscribed to the Google Groups >"Django users" group. >To post to this group, send email to django-users@googlegroups.com. >To unsubscribe from this group, send email to >django-users+unsubscr...@googlegroups.com. >For more options, visit this group at >http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.