Hi Eric,

On 14.05.2008, at 03:49, Eric Abrahamsen wrote:

> app_years = Appearance.objects.dates('app_date','year')

I don't know if it makes a difference and I'm new to django, but I've  
used the dates method like so:

app_years = Appearance.objects.all().dates('app_date','year')

and it works like a charm

adi

--
Adi J. Sieker         mobile: +49 - 178 - 88 5 88 13
Freelance developer   skype:  adijsieker
SAP-Consultant        web:    http://www.sieker.info/profile
                       openbc: https://www.openbc.com/hp/ 
AdiJoerg_Sieker/




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