Commit 12197c62 authored by Jo Sama's avatar Jo Sama 😱
Browse files

Add skip_defaults in *dict() for Operator model

Seems like this is a bug in Pydantic. We should not need to specify this
argument according to the docs.
parent d78ca224
......@@ -191,9 +191,11 @@ class Operator(BaseModel):
def dict(self, *args, **kwargs):
kwargs['exclude'] = {'id'}
kwargs['skip_defaults'] = False
return super(Operator, self).dict(*args, **kwargs)
def inclusive_dict(self, *args, **kwargs):
kwargs['skip_defaults'] = False
return super(Operator, self).dict(*args, **kwargs)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment