Re: update_object and duplication of inline objects on save

2007-03-16 Thread martwine
Hi, I have the same or similar problem. I'm using update_object to reproduce the inline editing of a foreignkey join table that works very well in the admin interface. When editing a publication, I need to be able to add authors to the publication, who are linked to publications by an explicit j

Re: update_object and duplication of inline objects on save

2007-03-19 Thread martwine
Hello all, I'm still really stuck with this problem. I could write a custom manipulator, although then I loose lots of the useful admin-related functionality e.g. num_in_admin, num_extra_on_change etc. I suspect I should really update my version of django and swap everything to the newforms librar

ManyToMany, edit_inline and the Admin interface

2006-06-13 Thread martwine
Hi there, I have two classes related by a ManyToManyField - Publications and Authors. I want to be able to add entries to both tables through one page of the admin interface - as with edit_inline with ForeignKey relationships, i.e. when adding a new publication I want to be able to select from a

Re: ManyToMany, edit_inline and the Admin interface

2006-06-13 Thread martwine
Obviously I found the solution as soon as I posted here. I created an empty Admin inner class in the Authors model, which caused an add option to appear in the Publication admin page. There is now the option to edit Authors from top-level django admin, but this is fine. Sorry for cluttering up th