Django Book 翻译
菜单>:
TOC
返回
原文:
Not all models can (or should) be editable by admin users, so you need to mark models that should have an admin interface. You do that by adding an inner ``Admin`` class to your model (alongside the ``Meta`` class, if you have one). So, to add an admin interface to our ``Book`` model from the previous chapter, we use this:
翻译:
不是所有的models都能够(或应该)被管理员编辑,你需要给models标记一个管理员接口(interface),通过给models添加一个内部类‘admin’完成接口标记。所以,给上一章我们的“book”models添加管理员接口就像下面这样:
备注:
译者: