Hello list,

I have a use case where I want to show a few other objects as inline
editable fields, but have been stymied by the fact that there exists
no direct foreign key relationship between them.  Here is an example:
Outermost_Model -> Inner_Model -> Django User Model, where '->' is a
foreign key reference.  I want to edit Outermost_Model instances from
a Django User instance. I feel as though I studied the documentation
at http://docs.djangoproject.com/en/dev/ref/contrib/admin/ and even
some of the admin source code carefully, but am left unenlightened
after some experimentation on how to accomplish this without severe
hackery, or if there's another way I should be approaching this
entirely.

In general, I do not fully understand why there are no *apparent*
provisions to allow for a developer to provide model instances
(writing their own queries...) that they desire to be inline-editable
given the "parent" instance.  If passed a User object, for example, I
could fairly easily return the Outermost_Model instances I want
rendered inline.

--
Seeking enlightenment,
fdr

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to