diff options
Diffstat (limited to 'django/forms')
| -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) |
