diff --git a/django/contrib/admin/templates/admin/includes/fieldset.html b/django/contrib/admin/templates/admin/includes/fieldset.html
index 0b71d50..ae2a3d1 100644
a
|
b
|
|
4 | 4 | <div class="description">{{ fieldset.description|safe }}</div> |
5 | 5 | {% endif %} |
6 | 6 | {% for line in fieldset %} |
7 | | <div class="form-row{% if line.fields|length_is:'1' and line.errors %} errors{% endif %}{% for field in line %}{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% endfor %}"> |
| 7 | <div class="form-row{% if line.fields|length_is:'1' and line.errors %} errors{% endif %}"> |
8 | 8 | {% if line.fields|length_is:'1' %}{{ line.errors }}{% endif %} |
9 | 9 | {% for field in line %} |
10 | | <div{% if not line.fields|length_is:'1' %} class="field-box{% if not field.is_readonly and field.errors %} errors{% endif %}"{% endif %}> |
| 10 | <div{% if not line.fields|length_is:'1' %} class="field-box{% if field.field.name %} field-{{ field.field.name }}{% endif %}{% if not field.is_readonly and field.errors %} errors{% endif %}"{% endif %}> |
11 | 11 | {% if not line.fields|length_is:'1' and not field.is_readonly %}{{ field.errors }}{% endif %} |
12 | 12 | {% if field.is_checkbox %} |
13 | 13 | {{ field.field }}{{ field.label_tag }} |
diff --git a/django/contrib/admin/templates/admin/prepopulated_fields_js.html b/django/contrib/admin/templates/admin/prepopulated_fields_js.html
index 7300bea..fee51e2 100644
a
|
b
|
|
13 | 13 | |
14 | 14 | {% for dependency in field.dependencies %} |
15 | 15 | field['dependency_ids'].push('#{{ dependency.auto_id }}'); |
16 | | field['dependency_list'].push('.{{ dependency.name }}'); |
| 16 | field['dependency_list'].push('.field-{{ dependency.name }}'); |
17 | 17 | {% endfor %} |
18 | 18 | |
19 | | $('.empty-form .{{ field.field.name }}').addClass('prepopulated_field'); |
| 19 | $('.empty-form .field-{{ field.field.name }}').addClass('prepopulated_field'); |
20 | 20 | $(field.id).data('dependency_list', field['dependency_list']) |
21 | 21 | .prepopulate(field['dependency_ids'], field.maxLength); |
22 | 22 | {% endfor %} |