Better formatting of the label text in newforms
|Reported by:||Henrik Vendelbo <info@…>||Owned by:||nobody|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The current label text processing is quite hardcoded, and changing it requires patching forms.py or replacing it.
The default behaviour is to use a prettified version of the field name if no label is given and html_escape it, and append a ':'.
This behaviour is retained, but can be changed by supplying two functions to the Form constructor.
Change History (5)
Changed 9 years ago by info@…
comment:1 Changed 9 years ago by info@…
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 9 years ago by Simon G. <dev@…>
- Triage Stage changed from Unreviewed to Design decision needed