diff options
| author | e0ne <e0ne@e0ne.info> | 2013-09-10 16:09:55 +0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-09-10 13:00:10 -0400 |
| commit | 053de6131af83c63ec17d38578889c71de913d24 (patch) | |
| tree | 5d0e36e52c2d7613fa1b9e2f335ce570d9960837 /django/forms/forms.py | |
| parent | 4840fd9cbc3987781f7e6fab2520c9bd42aec057 (diff) | |
Fixed #5749 -- Added field_name as a key in the _html_output dict
Thanks SmileyChris for the suggestion.
Diffstat (limited to 'django/forms/forms.py')
| -rw-r--r-- | django/forms/forms.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/forms/forms.py b/django/forms/forms.py index d8d08e18fe..e04d6a0781 100644 --- a/django/forms/forms.py +++ b/django/forms/forms.py @@ -185,7 +185,8 @@ class BaseForm(object): 'label': force_text(label), 'field': six.text_type(bf), 'help_text': help_text, - 'html_class_attr': html_class_attr + 'html_class_attr': html_class_attr, + 'field_name': bf.html_name, }) if top_errors: |
