Django Book 翻译
菜单>:
TOC
返回
原文:
The first step in creating a profile is to define a model that holds the profile information. The only requirement Django places on this model is that it have a unique ``ForeignKey`` to the ``User`` model; this field must be named ``user`` . Other that that, you can use any other fields you like. Heres a strictly arbitrary profile model:
翻译:
创建档案的第一步是定义一个模型(model)来存储档案信息。Django对这个模型所做的唯一的限制是,必须要包含唯一的一个对 ``User`` 模型的 ``ForeignKey`` ,而且这个字段必须要叫做 ``user`` 。其他的字段可以由你自己掌控。下面是一个档案模型的例子:
备注:
译者: