Django Book 翻译
菜单>:
TOC
返回
原文:
Note that if your model doesnt have ``class Admin`` set when you run ``syncdb`` , the permissions wont be created. If you initialize your database and add ``class Admin`` to models after the fact, youll need to run ``syncdb`` again to create any missing permissions for your installed applications.
翻译:
注意,如果当你运行 ``syncdb`` 时,模型中没有包含 ``class Admin`` ,该模型对应的权限就不会被创建。如果你在初始化数据库以后,又在自己的模型中加入了 ``class Admin`` ,你就需要重新运行 ``syncdb`` 来为应用加入权限。
备注:
译者: