BoundField.as_hidden() assumes hidden_widget is a class
|Reported by:||SmileyChris||Owned by:||nobody|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The hidden_widget of a field could just as easily be (and is, in a case I'm using) a Widget instance rather than a Widget class but BoundField.as_hidden() assumes that it is always a class.
Simple patch attached checks first before trying to instantiate the hidden_widget.
Change History (4)
Changed 8 years ago by SmileyChris
comment:1 Changed 8 years ago by adrian
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 8 years ago by adrian
- Triage Stage changed from Unreviewed to Design decision needed