Hi,

I am modifying the admin template edit_inline_tabular.html in order to
add links pointing to the change admin page for particular objects
listed there. For this I need the primary key of the object, but I do
not know how to get this from a
django.templatetags.admin_modify.FormFieldCollectionWrapper object (the
items in bound_related_object.form_field_collection_wrappers).

In case it helps, I'll describe what I'm trying to achieve in broader
terms. I have a schema in which there are entities, each of which may
have multiple names, and in which each name is composed of one or more
name parts. The admin interface does not allow for two levels of
edit_inline (and that seems fair enough), but I need to have some way of
linking between an entity object and its name parts.

My idea is to have names edited inline on entity objects, with each
existing name linked to the change page for that name. The name admin
form has the name part objects as edit_inline. There needs also to be a
link from each name page to the change page for the entity it is
associated with.

Am I going about this the right way?

Jamie


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