Fixed #14984 -- Ensure that ClearableFileInput produces XHTML Strict output. Thanks to Luke for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15426 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b3085f8ae5
commit
8ce7beaea0
|
@ -329,7 +329,7 @@ class ClearableFileInput(FileInput):
|
|||
|
||||
if value and hasattr(value, "url"):
|
||||
template = self.template_with_initial
|
||||
substitutions['initial'] = (u'<a target="_blank" href="%s">%s</a>'
|
||||
substitutions['initial'] = (u'<a href="%s">%s</a>'
|
||||
% (value.url, value))
|
||||
if not self.is_required:
|
||||
checkbox_name = self.clear_checkbox_name(name)
|
||||
|
|
Loading…
Reference in New Issue