diff --git a/django/contrib/postgres/forms/array.py b/django/contrib/postgres/forms/array.py
index 2e19cd574a..f1c609d5be 100644
a
|
b
|
class SplitArrayWidget(forms.Widget):
|
147 | 147 | if id_: |
148 | 148 | final_attrs = {**final_attrs, 'id': '%s_%s' % (id_, i)} |
149 | 149 | context['widget']['subwidgets'].append( |
150 | | self.widget.get_context(name + '_%s' % i, widget_value, final_attrs)['widget'] |
| 150 | self.widget.get_context(name + '_%s' % i, widget_value, {**final_attrs})['widget'] |
151 | 151 | ) |
152 | 152 | return context |
153 | 153 | |