我在带有djongo软件包的mongodb中使用了django。我使用嵌入式字段在集合中制作嵌入式文档。如果我使用makemigrations命令进行迁移,则其抛出错误如下所示。
partitionKey: userId
sortKey: accountId
info: someAccountInfo
这是我的model.py文件
1. Get the current default account
2. unset the current default account
3. set it to the new default account
提前谢谢。