Fields using SplitHiddenDateTimeWidget are still rendered with their label
Reported by: |
David Gouldin |
Owned by: |
nobody |
Component:
|
Forms
|
Version:
|
1.0
|
Severity:
|
|
Keywords:
|
|
Cc:
|
dgouldin@…
|
Triage Stage:
|
Accepted
|
Has patch:
|
yes
|
Needs documentation:
|
no
|
Needs tests:
|
no
|
Patch needs improvement:
|
no
|
Easy pickings:
|
no
|
UI/UX:
|
no
|
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>'
Change History
(6)
Cc: |
dgouldin@… added
|
Has patch: |
set
|
Needs tests: |
set
|
Triage Stage: |
Unreviewed → Accepted
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
updated patch with test case