#24347: parameter 'widget' of BoundField.as_widget is ignored
-------------------------------------+-------------------------------------
     Reporter:  srkunze              |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Forms                |                  Version:  1.8beta1
     Severity:  Normal               |               Resolution:
     Keywords:  BoundField,          |             Triage Stage:
  as_widget                          |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  1                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  1
-------------------------------------+-------------------------------------

Comment (by srkunze):

 I hope this illustrates our problem:
 https://github.com/srkunze/django/commits/add_test_24347

 In case of an error of the form (thus, the form needs to be re-rendered),
 the hidden-initial should be re-rendered with the exact same value string
 as it was rendered in unbound state.

 Each different state of the form (corresponding to each written test):

 unbound
 bound + changed
 bound + unchanged

 shows a different behaviour (fails, fails, succeeds) which is unfortunate
 for our internal testing library.

 Replying to [comment:16 timgraham]:
 > I think the docstrings explain the difference between `data` and
 `value`. I wouldn't get caught up in the fact that `prepare_value()` is
 called with a variable named `data` even though its parameter is named
 `value`.

 Unfortunately, docstring explains data by saying "data" and value by
 saying "value". Thus, no relationship between data and value is defined
 clearly.

--
Ticket URL: <https://code.djangoproject.com/ticket/24347#comment:17>
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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.dd8b7356f9aef47d28485298c45fb3d5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to