Closed dnsl48 closed 7 years ago
Django 1.10 (and earlier) makes an invocation of the widget.render method passing arguments using positional propagation: https://github.com/django/django/blob/1.10.7/django/forms/boundfield.py#L101
widget.render
force_text(widget.render(name, self.value(), attrs=attrs))
Django 1.11 (and later) changes this invocation so that arguments bound to names: https://github.com/django/django/blob/1.11/django/forms/boundfield.py#L116
html = widget.render( name=name, value=self.value(), attrs=attrs, **kwargs )
This implies that from now onwards the attribute names are significant.
Also, there was a new attribute introduced: renderer, which becomes mandatory since django 2.1
renderer
fix implemented, tests are coming
Django 1.10 (and earlier) makes an invocation of the
widget.render
method passing arguments using positional propagation: https://github.com/django/django/blob/1.10.7/django/forms/boundfield.py#L101Django 1.11 (and later) changes this invocation so that arguments bound to names: https://github.com/django/django/blob/1.11/django/forms/boundfield.py#L116
This implies that from now onwards the attribute names are significant.
Also, there was a new attribute introduced:
renderer
, which becomes mandatory since django 2.1