#14710: Form css classes for bound fields are not rendered {{ form.field_name }}
---------------------------------------------+------------------------------
          Reporter:  trebor74hr              |         Owner:  trebor74hr
            Status:  closed                  |     Milestone:            
         Component:  Forms                   |       Version:  1.2       
        Resolution:  wontfix                 |      Keywords:            
             Stage:  Design decision needed  |     Has_patch:  1         
        Needs_docs:  1                       |   Needs_tests:  0         
Needs_better_patch:  0                       |  
---------------------------------------------+------------------------------
Changes (by julien):

  * status:  assigned => closed
  * resolution:  => wontfix
  * milestone:  1.3 =>

Comment:

 I am not convinced this is a good idea. As you've noticed, when rendering
 a form with `as_p` or `as_ul`, the CSS classes are never applied directly
 to the `<input>` elements but on the `<p>`'s or `<li>`'s. So to me it
 seems perfectly consistent and expected that the classes still aren't
 applied to the `<input>`'s when they're rendered on their own. What's more
 is that changing this behaviour would likely break a lot of existing
 websites.

 Your proposal and efforts writing this patch are really appreciated but I
 think it is best to leave things the way they are here. #13564, however,
 is something really worth fixing and getting right.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14710#comment:5>
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to