Django Book 翻译
菜单>:
TOC
返回
原文:
Now lets write our view. For the sake of simplicity, well just load all books into the context and let the template handle the grouping with the ``{% regroup %}`` tag. Create a file, ``books/admin_views.py`` , with this code:
翻译:
现在我们开始写视图。为了简单起见,我们只把所有书籍加载到上下文中,让模板用 ``{% regroup %}`` 标签来处理分组操作。创建 ``books/admin_views.py`` 文件并写入以下内容:
备注:
译者: