On Mon, 2008-03-03 at 14:23 -0800, Berco Beute wrote: > I want to create a form for editing existing Poll objects and their > associated Choice objects (see below). Editing the Poll objects is no > problem, the 'name' textfield shows up nicely. But I also want to edit > the associated Choice objects with the same form (much like you can do > on the automatically generated admin pages). Although Choices are > related to Polls through a ForeignKey they don't show up in the auto- > generated modelform.
That's correct. At some point we'll have some "formsets" functionality, but that's still work in progress. Fortunately, it's very easy to do this on your own. Have a read of these two links (they're alternate approaches to the same goal) and you should be able to extend it to your particular situation: http://collingrady.com/2008/02/18/editing-multiple-objects-in-django-with-newforms/ http://www.pointy-stick.com/blog/2008/01/06/django-tip-complex-forms/ Regards, Malcolm -- Depression is merely anger without enthusiasm. http://www.pointy-stick.com/blog/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---