You must do what is done with the help of $setOnInsert in pymongo class User(Document): test ... upsert (в самой монго для этого есть ...
確定! 回上一頁