I think what i actually want is a form set, but I don't find that all that well done either.
What I'm finding lacking is the ability to put a master/detail relationship in a single form. For instance, Author/Books. Furthermore, I don't see a nice way to work with dynamically expanding forms - IOW, allow the user to keep adding books to an Author using DHTML. So far my impression of forms is - ick - lame. -Todd Blanchard On Dec 19, 2009, at 4:37 PM, Karen Tracey wrote: > On Fri, Dec 18, 2009 at 7:27 PM, Todd Blanchard <tblanch...@mac.com> wrote: > One thing I'm keenly missing from rails is the form input naming convention > that causes the form values to be converted into a hierarchy. For instance, > > <input name="foo[bar]" value"one"> > <input name="foo[baz]" value="two"> > > will result in the request values being stored as { 'foo' : {'bar' : 'one', > 'baz' : 'two' }} > > this is very handy when updating multiple related objects in a single form > submit. > > Is there a similar facility for django/python or will I need to write it? > > > I think you might be looking for the form prefix argument: > > http://docs.djangoproject.com/en/dev/ref/forms/api/#prefixes-for-forms > > Karen > > -- > > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@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. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.