Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/forms/widgets.py
2  django/forms/widgets.py
@@ -329,7 +329,7 @@ def render(self, name, value, attrs=None):
329 329
 
330 330
         if value and hasattr(value, "url"):
331 331
             template = self.template_with_initial
332  
-            substitutions['initial'] = (u'<a target="_blank" href="%s">%s</a>'
  332
+            substitutions['initial'] = (u'<a href="%s">%s</a>'
333 333
                                         % (value.url, value))
334 334
             if not self.is_required:
335 335
                 checkbox_name = self.clear_checkbox_name(name)

0 notes on commit 8ce7bea

Please sign in to comment.
Something went wrong with that request. Please try again.