Commit 8ce7beae authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #14984 -- Ensure that ClearableFileInput produces XHTML Strict output....

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
parent b3085f8a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)