mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #17922 -- Added required_css_class to form label.
Thanks hanson2010 for the suggestion.
This commit is contained in:
committed by
Tim Graham
parent
2ec82c7387
commit
416a858023
@@ -112,6 +112,10 @@ Forms
|
||||
* The new :meth:`~django.forms.Form.has_error()` method allows checking
|
||||
if a specific error has happened.
|
||||
|
||||
* If :attr:`~django.forms.Form.required_css_class` is defined on a form, then
|
||||
the ``<label>`` tags for required fields will have this class present in its
|
||||
attributes.
|
||||
|
||||
Internationalization
|
||||
^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
||||
Reference in New Issue
Block a user