diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2007-02-15 22:43:43 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2007-02-15 22:43:43 +0000 |
| commit | 4a85a75fb0e3185dc77362c16e80219dac168c05 (patch) | |
| tree | f57acd80789608aff0bbccf184fdfb0c9386b1b3 /tests/regressiontests/forms/tests.py | |
| parent | 1d5e974a4f2e116a1530c24e6df54449b8ef3c98 (diff) | |
Fixed #3506 -- Changed newforms BoundField.help_text to an empty string if None. Thanks for the patch, Thomas Steinacher
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4528 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/forms/tests.py')
| -rw-r--r-- | tests/regressiontests/forms/tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/regressiontests/forms/tests.py b/tests/regressiontests/forms/tests.py index 5bd56109a1..c53729da46 100644 --- a/tests/regressiontests/forms/tests.py +++ b/tests/regressiontests/forms/tests.py @@ -3044,6 +3044,8 @@ does not have help text, nothing will be output. <p>Password2: <input type="password" name="password2" /></p> <input type="submit" /> </form> +>>> Template('{{ form.password1.help_text }}').render(Context({'form': UserRegistration(auto_id=False)})) +'' The label_tag() method takes an optional attrs argument: a dictionary of HTML attributes to add to the <label> tag. |
