Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ninja_extra/controllers/model/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async def create_async(self, schema: PydanticModel, **kwargs: t.Any) -> t.Any:
return await sync_to_async(self.create, thread_sensitive=True)(schema, **kwargs)

def update(self, instance: Model, schema: PydanticModel, **kwargs: t.Any) -> t.Any:
data = schema.model_dump(exclude_none=True)
data = schema.model_dump(exclude_unset=True)
data.update(kwargs)
for attr, value in data.items():
setattr(instance, attr, value)
Expand Down
Loading