You have two underscores after start_date in start_date__month,
probably that is the problem. Change this to start_date_month, (one
underscore) and see if it works.

On Jan 22, 2:15 pm, omat <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I have a model with a date field. When I try to filter based on its
> months like:
>
> q1 = Event.objects.filter(start_date__month__in=[1, 2, 3])
>
> I get an "unable to resolve field 'start_date__month'" error.
>
> Is this usage not supported or is this a bug?
>
> Any ideas?
>
> Thanks,
> oMat
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to