> > 
> Hm, I don't know how you're implementing it (maybe I'll switch to the
> new-admin trunk tomorrow, just to take a look), but I think you can
> implement it fairly simply without the problems you describe above.

Well, it is not implemented fully yet. The main changes for this will be
in django/core/meta/__init__.py in manipulator_save, basically making
manipulators recursive. (Ie child manipulators are instantiated for
inline objects).

> Taking my example, I select "Forum" from the main menu. I get the
> Forum props and inline the Threads. Now, when I make a thread, it
> stays a textfield, which would be correct if I had just a two level
> setup (easy maintenance), but how about making "Thread" a link that
> links to a page with the properties of Threads and the assorted Posts
> that belong to it, just like it does now in the two level setup. You
> could make endless links, like so:
> 
> First page:
>   Object1 properties (changable)
>   Object2 links -> page 2
>   Object2 "create new" input fields
> Second page
>   Object2 properties (changable)
>   Object3 links -> page 3
>   Object3 "create new" input fields
> [...]
> Last page
>   Object(N-1) properties (changable)
>   ObjectN properties (changable)
> 
> That would be logical and sensible, I think.
> 
> Just my 2 eurocents :) Feel free to ignore me if I'm talking nonsense :)

Yes, this would be one way to present things. This is not currently
implemented in the admin as a built-in inline editing mode.

You could implement it using the edit_inline="path/to/template"
functionality in the new-admin branch, but the tags, objects in context
etc you would need to use are currently undocumented and subject to
extensive change. One issue would be that the manipulator would expect
the fields of all the inline objects to be posted, but they wouldn't be
on the page. Not sure what the best solution is here yet, as this is
dissimilar to the current situations.

Also, be aware that you could make your own entirely custom views that
override areas of the admin if you like. Just hook them into the admin
urlconf.

Robert

Reply via email to