diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2011-02-05 06:36:23 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2011-02-05 06:36:23 +0000 |
| commit | 8ce7beaea05cff2ba6cda6ad6747e8840291ff06 (patch) | |
| tree | dec971e8a590226fad71949640cd05ed3d7641ad | |
| parent | b3085f8ae5d78adacce6968966405247b89f5dd7 (diff) | |
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
| -rw-r--r-- | django/forms/widgets.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/widgets.py b/django/forms/widgets.py index 6ee857a9fd..aa309a17a1 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -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) |
