diff options
| author | Jannis Leidel <jannis@leidel.info> | 2010-01-17 22:11:23 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2010-01-17 22:11:23 +0000 |
| commit | dc3d26bb597070a52927201d1ec13534673fa732 (patch) | |
| tree | 95d626f9d44c2434e6637d9f4b913d7d1b672420 /tests | |
| parent | 889c110e51946deb27fb41857cea0f2bbaa6a6a0 (diff) | |
[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
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/forms/forms.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/regressiontests/forms/forms.py b/tests/regressiontests/forms/forms.py index b204580131..2f210bda8f 100644 --- a/tests/regressiontests/forms/forms.py +++ b/tests/regressiontests/forms/forms.py @@ -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" />' + """ |
