mirror of
https://github.com/Hopiu/django.git
synced 2026-03-28 11:50:24 +00:00
Fields can now receive the `label_suffix` attribute, which will override
a form's `label_suffix`.
This enhances the possibility to customize form's `label_suffix`, allowing
to use such customizations while using shortcuts such as
`{{ form.as_p }}`.
Note that the field's own customization can be overridden at runtime by
using the `label_prefix` parameter to `BoundField.label_tag()`.
Refs #18134.
|
||
|---|---|---|
| .. | ||
| filepath_test_files | ||
| __init__.py | ||
| test_error_messages.py | ||
| test_extra.py | ||
| test_fields.py | ||
| test_forms.py | ||
| test_formsets.py | ||
| test_input_formats.py | ||
| test_media.py | ||
| test_regressions.py | ||
| test_util.py | ||
| test_validators.py | ||
| test_widgets.py | ||
| tests.py | ||