Django Book 翻译
菜单>:
TOC
返回
原文:
If a model has an ``AutoField`` but you want to define a new objects ID explicitly when saving, just define it explicitly before saving, rather than relying on the autoassignment of the ID:
翻译:
如果你想在一个新数据存储时,定义其 ``AutoField`` 字段值,而不依赖于数据库自动分配,明确赋值即可。
备注:
译者: