1
0
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:
Anubhav Joshi
2014-03-03 23:29:03 +05:30
committed by Tim Graham
parent 2ec82c7387
commit 416a858023
4 changed files with 50 additions and 12 deletions

View File

@@ -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
^^^^^^^^^^^^^^^^^^^^