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.
2 parents 0126893 + 4e5846e commit a9a6b60Copy full SHA for a9a6b60
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