mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
[1.1.X] Fixed #11301 - Properly hide SplitHiddenDateTimeWidget. Thanks to David Gouldin for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12242 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -1814,4 +1814,14 @@ True
|
||||
>>> print MyForm()
|
||||
<tr><th><label for="id_field1">Field1:</label></th><td><input id="id_field1" type="text" name="field1" maxlength="50" /><input type="hidden" name="initial-field1" id="initial-id_field1" /></td></tr>
|
||||
|
||||
# Checking that the label for SplitDateTimeField is not being displayed #####
|
||||
|
||||
>>> from django.forms import *
|
||||
>>> class EventForm(Form):
|
||||
... happened_at = SplitDateTimeField(widget=widgets.SplitHiddenDateTimeWidget)
|
||||
...
|
||||
>>> form = EventForm()
|
||||
>>> form.as_ul()
|
||||
u'<input type="hidden" name="happened_at_0" id="id_happened_at_0" /><input type="hidden" name="happened_at_1" id="id_happened_at_1" />'
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user