Django Book 翻译
菜单>:
TOC
返回
原文:
Theres a subtlety here that deserves mention. When we added the ``num_pages`` field to our model, we included the ``blank=True`` and ``null=True`` options. We did this because a database column will contain NULL values when you first create it.
翻译:
这里有一个要注意的地方。在添加 ``num_pages`` 字段时我们使用了 ``blank=True`` 和 ``null=True`` 可选项。 我们之所以这么做是因为在数据库创建时我们想允许字段值为NULL。
备注:
译者: