> To work around the "problem" (it's an evaluation-timing thing, so
> Python/Django is doing the "right" thing...just not what you
> expected), you need to simply pass Page.objects to your dict as,
> say "objects".  Then, in your view template, you need to
> reference "objects.latest.slug" which will do the lookup
> evaluation at the time the template is rendered.  Or, if it's

OK, that makes sense.  So how should I call that view?  Should I still
use a object_detail view or object_list?  And how should I construct
the dict if it's for a detail view?

latest_info_dict = {
    'queryset': Page.objects.all(),
    'object': Page.objects,
}
?




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