* stage: Unreviewed => Accepted
Comment:
Hey Claude,
> Maybe adding `option_attrs`…
So I'm looking at this in `ChoiceWidget`:
{{{
def create_option(
self, name, value, label, selected, index, subindex=None,
attrs=None
):
...
option_attrs = (
self.build_attrs(self.attrs, attrs) if
self.option_inherits_attrs else {}
)
...
}}}
Do you think pulling that into a property (that could then be overridden)
would be sufficient? Maybe the `else` would pull from an `__init__` arg. …
🤔
(Implementation TBD)
Seems a reasonable suggestion anyhow. Thanks.
--
Ticket URL: <https://code.djangoproject.com/ticket/34034#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.