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'%s' + substitutions['initial'] = (u'%s' % (value.url, value)) if not self.is_required: checkbox_name = self.clear_checkbox_name(name)