diff options
| author | kakulukia <andy@freilandkiwis.de> | 2017-06-05 22:17:10 +0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-06-06 15:41:23 -0400 |
| commit | 525dc283a68c0d47f5eb2192cc4a20111d561ae0 (patch) | |
| tree | 87bea094fad434660d8345a88e9b88e4d2a3ccf6 /django | |
| parent | 37c9b81ebc9af3b61345a070a143ee8330a119b4 (diff) | |
Fixed #28278 -- Fixed invalid HTML for a required AdminFileWidget.
Diffstat (limited to 'django')
| -rw-r--r-- | django/contrib/admin/templates/admin/widgets/clearable_file_input.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/templates/admin/widgets/clearable_file_input.html b/django/contrib/admin/templates/admin/widgets/clearable_file_input.html index 327b8ad16a..9fee235819 100644 --- a/django/contrib/admin/templates/admin/widgets/clearable_file_input.html +++ b/django/contrib/admin/templates/admin/widgets/clearable_file_input.html @@ -1,6 +1,6 @@ {% if is_initial %}<p class="file-upload">{{ initial_text }}: <a href="{{ widget.value.url }}">{{ widget.value }}</a>{% if not widget.required %} <span class="clearable-file-input"> <input type="checkbox" name="{{ checkbox_name }}" id="{{ checkbox_id }}" /> -<label for="{{ checkbox_id }}">{{ clear_checkbox_label }}</label>{% endif %}</span><br /> +<label for="{{ checkbox_id }}">{{ clear_checkbox_label }}</label></span>{% endif %}<br /> {{ input_text }}:{% endif %} <input type="{{ widget.type }}" name="{{ widget.name }}"{% include "django/forms/widgets/attrs.html" %} />{% if is_initial %}</p>{% endif %} |
