#13997: multiwidget needs better docs
-------------------------------+------------------------------------
     Reporter:  cuci           |                    Owner:  nobody
         Type:  New feature    |                   Status:  new
    Component:  Documentation  |                  Version:  1.4
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  0              |      Needs documentation:  1
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+------------------------------------
Changes (by mjdemilliano@…):

 * needs_docs:  0 => 1
 * version:  1.2 => 1.4


Comment:

 It would be helpful if the documentation on MultiWidget also brought the
 method `value_from_datadict` to the attention, next to `decompress`, to
 also have the transformation from multiple widget values to the field
 value (`decompress` does the reverse).

 Example:
 {{{
 def value_from_datadict(self, data, files, name):
     values = super(MyMultiWidget, self).value_from_datadict(data, files,
 name)
     # i.e. return MyValueType(float(values[0]), float(values[1]))
     return MyValueType(... something with values ...)
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/13997#comment:8>
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 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