summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2011-02-05 06:36:23 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2011-02-05 06:36:23 +0000
commit8ce7beaea05cff2ba6cda6ad6747e8840291ff06 (patch)
treedec971e8a590226fad71949640cd05ed3d7641ad
parentb3085f8ae5d78adacce6968966405247b89f5dd7 (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.py2
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)