We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 761e957 commit 4e5846eCopy full SHA for 4e5846e
ninja_extra/controllers/model/service.py
@@ -67,7 +67,7 @@ async def create_async(self, schema: PydanticModel, **kwargs: t.Any) -> t.Any:
67
return await sync_to_async(self.create, thread_sensitive=True)(schema, **kwargs)
68
69
def update(self, instance: Model, schema: PydanticModel, **kwargs: t.Any) -> t.Any:
70
- data = schema.model_dump(exclude_none=True)
+ data = schema.model_dump(exclude_unset=True)
71
data.update(kwargs)
72
for attr, value in data.items():
73
setattr(instance, attr, value)
0 commit comments