#11301: Fields using SplitHiddenDateTimeWidget are still rendered with their 
label
----------------------+-----------------------------------------------------
 Reporter:  dgouldin  |       Owner:  nobody    
   Status:  new       |   Milestone:            
Component:  Forms     |     Version:  1.0       
 Keywords:            |       Stage:  Unreviewed
Has_patch:  0         |  
----------------------+-----------------------------------------------------
 Using the following form class:

 {{{
 from django import forms
 class TestForm(forms.Form):
     test_field =
 forms.SplitDateTimeField(widget=forms.widgets.SplitHiddenDateTimeWidget)
 }}}

 an instance of this class will render with a label for test_field:

 {{{
 >>> f = TestForm()
 >>> f.as_table()
 u'<tr><th><label for="id_test_field_0">Test field:</label></th><td><input
 type="hidden" name="test_field_0" id="id_test_field_0" /><input
 type="hidden" name="test_field_1" id="id_test_field_1" /></td></tr>'
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11301>
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