diff options
author | Matthew Schinckel <matt@schinckel.net> | 2015-06-08 18:41:05 +0930 |
---|---|---|
committer | Markus Holtermann <info@markusholtermann.eu> | 2015-06-08 13:57:25 +0200 |
commit | bbff3147f2cfa6c985b129f13b8be0826e7bc535 (patch) | |
tree | 733db0bf877b4ce6314b6705130feccc07dc7322 /django/forms/utils.py | |
parent | 788071e22d632e5f353d193f9e3bde3738d49879 (diff) | |
download | django-bbff3147f2cfa6c985b129f13b8be0826e7bc535.tar.gz |
Made flatatt docstring match reality
The spirit of the docstring was correct, but referred to an outdated version of the function.
Diffstat (limited to 'django/forms/utils.py')
-rw-r--r-- | django/forms/utils.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/django/forms/utils.py b/django/forms/utils.py index 9d41ba3639..e29ead0427 100644 --- a/django/forms/utils.py +++ b/django/forms/utils.py @@ -20,10 +20,12 @@ def flatatt(attrs): """ Convert a dictionary of attributes to a single string. The returned string will contain a leading space followed by key="value", - XML-style pairs. It is assumed that the keys do not need to be XML-escaped. - If the passed dictionary is empty, then return an empty string. + XML-style pairs. In the case of a boolean value, the key will appear + without a value. It is assumed that the keys do not need to be + XML-escaped. If the passed dictionary is empty, then return an empty + string. - The result is passed through 'mark_safe'. + The result is passed through 'mark_safe' (by way of 'format_html_join'). """ key_value_attrs = [] boolean_attrs = [] |