Exclude unset fields so fix removedMemberships return value.

This commit is contained in:
Tom Hacohen
2020-12-28 08:42:48 +02:00
parent d63c34693f
commit 15988235f2
2 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ class MsgpackResponse(Response):
return b""
if isinstance(content, BaseModel):
content = content.dict()
content = content.dict(exclude_unset=True)
return msgpack.packb(content, use_bin_type=True)