📜  django 更改值并保存模型对象 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:18.152000             🧑  作者: Mango

代码示例1
b4 = Blog(id=3, name='Not Cheddar', tagline='Anything but cheese.')
b4.save()  # Overrides the previous blog with ID=3!