如何传递包含字段的dict来更新Django模型?这不是创建对象,而是更新它.
例:
obj = Object.objects.create(index=id, **fields)
python django
django ×1
python ×1