On Fri, Dec 18, 2009 at 7:27 PM, Todd Blanchard <[email protected]> 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 [email protected].
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.


Reply via email to