i8enn / pydantic-odm

Small async ODM for MongoDB based in Motor and Pydantic library
MIT License
39 stars 8 forks source link

Fix creating empty id field when creating new document #27

Open tc-imba opened 4 years ago

tc-imba commented 4 years ago

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?

i8enn commented 4 years ago

@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.