I have a generic view using object_detail, so in my template i have an
object variable i can use. However i use a template include to do some
display, and the template expects the object to have a different name.

In my urls the dictionary is setup as:

objects_dict = {
  'queryset' : Object.objects.all(),
  'slug_field' : 'slug'
}

It appears that in django development version i can do the following
in the template:

{% with object as new_name %}
{% include "include.html" %}
{% endwith %}

Is there anything i can do in 0.96, either in the template, or
modifying the dictionary passed to the generic view?

Thanks

Tom

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