Set class name to "required" for labels which corresponds to required fields
I need some way to mark required field in html code returned by form.as_...()
. The proposal is to set class name as "required" for labels of that fields.
Needs documentation: |
set
|
Patch needs improvement: |
set
|
Triage Stage: |
Unreviewed → Accepted
|
Summary: |
[patch] Set class name to "required" for labels which corresponds to required fields → Set class name to "required" for labels which corresponds to required fields
|
Needs tests: |
set
|
Resolution: |
→ duplicate
|
Status: |
new → closed
|
I'd actually feel happier about having this passed automatically to the widgets, regardless of whether one of the
as
methods is being used; that way it works everywhere. Also, documentation which mentions that this will happen would be nice :)