On 11/9/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 11/9/06, Phil Davis <[EMAIL PROTECTED]> wrote: [...] > > I have just tried a 'by-the-docs' generic view with simple 2 model > > master/detail update form and get exactly the same problem or > > duplicated detail rows after each save. > > This result is common if you omit the <input type='hidden' ...> that > is part of each row of the edit_inline table. The hidden input > argument is requried, as it ties the row of the edit_inline table to > the existing element. > > Check your template to make sure it contains all the required input > elements (including the hidden ones) - if you are looking for a > comparison, look at the generated HTML for the admin pages.
Yep, that was it. In my defense I had eventually tried adding the hidden fields (detail model 'id' field) and I thought I had restarted apache but obviously did not. NB I looked very hard for a complete generic views CRUD example which uses master/detail models but could not find anything. Does anyone have a good link? Cheers, -- Phil Davis --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---