Django Book 翻译
菜单>:
TOC
返回
原文:
You may have noticed that Django database objects use the same ``save()`` method for creating and changing objects. Django abstracts the need to use ``INSERT`` or ``UPDATE`` SQL statements. Specifically, when you call ``save()`` , Django follows this algorithm:
翻译:
你可能已经注意到Django数据库对象在创建和更改对象时,使用了同一个 ``save()`` 函数。Django抽象化了对SQL语句中的 ``INSERT`` 和 ``UPDATE`` 的需求,当你调用 ``save()`` 的时候,Django会遵守下面的原则:
备注:
译者: