mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Fixed #32819 -- Established relationship between form fields and their help text.
Thanks Nimra for the initial patch. Thanks Natalia Bidart, Thibaud Colas, David Smith, and Mariusz Felisiak for reviews.
This commit is contained in:
parent
649262a406
commit
966ecdd482
15 changed files with 144 additions and 16 deletions
|
|
@ -958,7 +958,8 @@ class TestFieldOverridesByFormMeta(SimpleTestCase):
|
|||
)
|
||||
self.assertHTMLEqual(
|
||||
str(form["slug"]),
|
||||
'<input id="id_slug" type="text" name="slug" maxlength="20" required>',
|
||||
'<input id="id_slug" type="text" name="slug" maxlength="20" '
|
||||
'aria-describedby="id_slug_helptext" required>',
|
||||
)
|
||||
|
||||
def test_label_overrides(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue