Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 8ce7beaea05cff2ba6cda6ad6747e8840291ff06 1 parent b3085f8
Russell Keith-Magee freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/forms/widgets.py
2  django/forms/widgets.py
View
@@ -329,7 +329,7 @@ def render(self, name, value, attrs=None):
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)
Please sign in to comment.
Something went wrong with that request. Please try again.