List Info

Thread: date_hierarchy on a ForeignKey?




date_hierarchy on a ForeignKey?
user name
2007-12-20 14:13:03
My hunch is the answer is "No," but is it possible
to do a
'date_heirarchy' on a ForeignKey date object? Haven't been
able to
find anything in the archive on the topic. Pointers
gratefully
accepted.

John
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: date_hierarchy on a ForeignKey?
user name
2007-12-20 14:58:35
Hi John,

> My hunch is the answer is "No," but is it
possible to do a
> 'date_heirarchy' on a ForeignKey date object? Haven't
been able to
> find anything in the archive on the topic. Pointers
gratefully
> accepted.

Your hunch is right. The admin date_hierarchy works only
with date and
datetime objects that are direct fields of the model.

-Rajesh
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )