I've got a perplexing problem that I don't even know where to start  
fixing. Creating a DateQuerySet for one of my models produces an empty  
list every time. Here's at the prompt:

 >>> apps = Appearance.objects.all()
 >>> for ap in apps:
...     print ap.app_date
...
2009-02-11 09:00:00
2008-06-22 09:00:00
2008-03-09 12:30:00
2008-03-08 19:00:00
2008-03-06 19:30:00
2008-01-29 19:30:00
2007-11-08 19:30:00
2007-11-07 18:30:00
<etc, etc, etc>
 >>> app_years = Appearance.objects.dates('app_date','year')
 >>> print app_years
[]

It does that for year, month and day. The app_date field for is  
nullable, but looking in the source a DateQuerySet seems to know to  
filter for null date fields (and there are currently no instances with  
null date values, anyway). I can't imagine what else could be  
affecting this, and don't even know where to start poking. I'm running  
r7520. If anyone could provide pointers...

Thanks,
Eric

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
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