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
{{ message }}
This repository was archived by the owner on Jun 21, 2024. It is now read-only.
def get_serializer_field_kwargs(self, field):
type_info = get_type_info(field.type)
if type_info.base_type == str and not type_info.is_many and not type_info.is_mapping:
return {"allow_blank": True}
if type_info.is_mapping or type_info.is_many:
return {"allow_empty": True}
return {}