pydantic-odm icon indicating copy to clipboard operation
pydantic-odm copied to clipboard

Fix creating empty id field when creating new document

Open tc-imba opened this issue 5 years ago • 1 comments

Fix #23

exclude={'id'} was only added when updating a document, now I added to creating as well.

PS. maybe setting "exclude_none" to true can be another solution?

tc-imba avatar Aug 19 '20 12:08 tc-imba

@tc-imba Hello! Thanks for your contribution! I need a little time to check your decision and if it is correct, I will accept your PR and will thank you very much.

i8enn avatar Aug 25 '20 15:08 i8enn