Better formatting of the label text in newforms
|Reported by:||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.