#26905: Add possibility to pass MultiValueDict-like objects as a form's data
--------------------------------------+--------------------
     Reporter:  marcinn               |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  Forms                 |    Version:  master
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  1
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 `value_from_datadict()` of `django.forms.widgets.MultipleHiddenInput` and
 `django.forms.widgets.SelectMultiple` are not based on duck typing but on
 a strict checking for `MultiValueDict` class.

 Changing implementation to duck typing will make code more flexible and
 open doors for passing any dict-like and MultiValueDict-like objects as a
 form's data.

 Forms data passed as `MultiValueDict` class should be slightly faster due
 to less type checkings, but this is not a goal itself.

 The discussion I've started about this improvement is here:
 https://groups.google.com/d/msg/django-developers/v-pk2l0hxHk/Vn-hEjMjAwAJ

 I'm attaching a patch proposal.

--
Ticket URL: <https://code.djangoproject.com/ticket/26905>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.9770c686df596f2f958b01dbd94fae5b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to