kopia lustrzana https://gitlab.com/jaywink/federation
Handle cases where a nested AP field contains only one undefined object.
rodzic
2672eede39
commit
345a0c0ac3
|
@ -218,6 +218,7 @@ class MixedField(fields.Nested):
|
|||
else:
|
||||
ret.append(self.iri._deserialize(item, attr, data, **kwargs))
|
||||
|
||||
if not ret: ret.append(None)
|
||||
return ret if len(ret) > 1 or self.many else ret[0]
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue