#11836: Missing django.forms.widgets.MultiWidget hidden counterpart
---------------------------------+------------------------------------------
          Reporter:  sayane      |         Owner:  nobody
            Status:  closed      |     Milestone:        
         Component:  Forms       |       Version:  1.1   
        Resolution:  invalid     |      Keywords:        
             Stage:  Unreviewed  |     Has_patch:  0     
        Needs_docs:  0           |   Needs_tests:  0     
Needs_better_patch:  0           |  
---------------------------------+------------------------------------------
Comment (by sayane):

 I found that.

 MultiWidget generates html names like this: "name_0", "name_1", "name_2",
 "name_x"...
 MultipleHiddenInput uses only one name: "name" (but multiple times).

 So If i'm using MultiValueField and I'll render a field with as_hidden
 method (this will put all data in name "name"), then field won't be able
 to get data from request.POST.

 This is why there are SplitDateTimeWidget and SplitHiddenDateTimeWidget in
 django/forms/widgets.py. I think there should be a hidden field that works
 with MultiWidget.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11836#comment:4>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" 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-updates?hl=en.

Reply via email to