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
Currently XLSXListField does not behave very nicely if prepping a value of None. This field corresponds to DRF's ListField, which does support allow_null=True.
def prep_value(self) -> Any:
> if len(self.value) > 0 and isinstance(self.value[0], Iterable):
E TypeError: object of type 'NoneType' has no len()
It seems as though this field should nicely handle null (None) values. Happy to open a PR if folks agree.
The text was updated successfully, but these errors were encountered:
Currently
XLSXListField
does not behave very nicely if prepping a value ofNone
. This field corresponds to DRF'sListField
, which does supportallow_null=True
.It seems as though this field should nicely handle null (
None
) values. Happy to open a PR if folks agree.The text was updated successfully, but these errors were encountered: