Django Book 翻译
菜单>:
TOC
返回
原文:
Because the ``Publisher`` model uses an autoincrementing primary key ``id`` , the initial call to ``save()`` does one more thing: it calculates the primary key value for the record and sets it to the ``id`` attribute on the instance:
翻译:
因为 ``Publisher`` 模型有一个自动增加的主键 ``id`` ,所以第一次调用 ``save()`` 还多做了一件事: 计算这个主键的值并把它赋值给这个对象实例:
备注:
译者: