Ticket #31073: dont_modify_final_attrs.diff

File dont_modify_final_attrs.diff, 661 bytes (added by Peter Andersen, 5 years ago)
  • django/contrib/postgres/forms/array.py

    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):  
    147147            if id_:
    148148                final_attrs = {**final_attrs, 'id': '%s_%s' % (id_, i)}
    149149            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']
    151151            )
    152152        return context
    153153
Back to Top