omat 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?

afaik this isn't supported (I'm assuming start_date is a date field)

you could use

http://www.djangoproject.com/documentation/db-api/#extra-select-none-where-none-params-none-tables-none

  - bram

--~--~---------~--~----~------------~-------~--~----~
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