diff options
| author | Roman Selivanov <seroy@bk.ru> | 2017-07-19 18:24:27 +0300 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-07-19 14:28:06 -0400 |
| commit | d4da39685b5974849c73e4c4dc6e07dfdf21c67a (patch) | |
| tree | 0da3ca91d2f198e010b79af6150c1fbcc0485d85 /django/forms/widgets.py | |
| parent | 3f7953846ee2e60a2cd56d6dea3b0ba9ffaa76c5 (diff) | |
Fixed #28414 -- Fixed ClearableFileInput rendering as a subwidget of MultiWidget.
Diffstat (limited to 'django/forms/widgets.py')
| -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 599d1e8011..01ada423c9 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -392,7 +392,7 @@ class ClearableFileInput(FileInput): context = super().get_context(name, value, attrs) checkbox_name = self.clear_checkbox_name(name) checkbox_id = self.clear_checkbox_id(checkbox_name) - context.update({ + context['widget'].update({ 'checkbox_name': checkbox_name, 'checkbox_id': checkbox_id, 'is_initial': self.is_initial(value), |
