Re: POST sub dictionaries

2009-01-19 Thread Briel
You should really read the django docs: http://docs.djangoproject.com/en/dev/ref/request-response/ In your first case, the latter value will overwrite the first value, so: request.POST['test[]'] = 1 or POST = {'test[]': 1} In your second case, you will just have one value:

POST sub dictionaries

2009-01-19 Thread Vinicius Mendes
Is there in django something like the PHP POST subarrays? For example, if i do this in my form: and submit it, i will have the following data structure in my PHP POST: $_POST = array( 'test' => array( 0 => 0, 1 => 1 ) ) In django, i think it can turn into: