You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In other words WidgetMixin assume attrs is either a dict or is not in kwargs, but in the base class Widgets it defaults to None.
Not a big dial, it can be easily worked around, but I think that it should be allowed to blindly pass attrs to all subwidget of a MultiWidget (that's what works with a plain Select at last).
Regards
The text was updated successfully, but these errors were encountered:
Hello, I found this unexpected behavior when using
ListSelect2
in aMultiWidget
. Basically__init__
breaks if attrs is None.Django
MultiWidget
has the following signatureBut in
dal.widgets.WidgetMixin.__init__
happens thisIn other words
WidgetMixin
assume attrs is either a dict or is not in kwargs, but in the base classWidgets
it defaults to None.Not a big dial, it can be easily worked around, but I think that it should be allowed to blindly pass
attrs
to all subwidget of aMultiWidget
(that's what works with a plain Select at last).Regards
The text was updated successfully, but these errors were encountered: