Fix collection list and how we return API responses.

This commit is contained in:
Tom Hacohen
2020-12-28 09:25:28 +02:00
parent ee4e7cf498
commit 80d69a5663
6 changed files with 49 additions and 60 deletions

View File

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