Django Book 翻译
菜单>:
TOC
返回
原文:
If a database column name is a Python reserved word (such as ``pass`` , ``class`` , or ``for`` ), ``inspectdb`` will append ``'_field'`` to the attribute name and set the ``db_column`` attribute to the real field name (e.g., ``pass`` , ``class`` , or ``for`` ).
翻译:
如果数据库中某个列的名字是Python的保留字,比如pass、class或者for等,inspectdb会在每个属性名后附加上_field,并将db_column属性设置为真实的字段名,比如pass,class或者for等。
备注:
译者: