Coerce read_only into a boolean
This commit is contained in:
1 parent
34c7fa2b0e
commit
58adbb8f4c
1 file changed
+1
-1
@@ -95,7 +95,7 @@ class InlineSerializerInspector(SerializerInspector):
|
||||
for property_name, child in field.fields.items():
|
||||
property_name = self.get_property_name(property_name)
|
||||
prop_kwargs = {
|
||||
'read_only': child.read_only or None
|
||||
'read_only': bool(child.read_only) or None
|
||||
}
|
||||
prop_kwargs = filter_none(prop_kwargs)
|
||||
|
||||
|
||||
Reference in new issue
Block a user