Django Book 翻译
菜单>:
TOC
返回
原文:
But there is: all generic views take an extra optional parameter, ``extra_context`` . This is a dictionary of extra objects that will be added to the templates context. So, to provide the list of all publishers on the detail detail view, wed use an info dict like this:
翻译:
这是解决方法:所有的通用视图都有一个额外的可选参数 ``extra_context`` 。这个参数是一个字典数据类型,包含要添加到模板的context中的额外的对象。所以要提供所有的出版商明细给视图,我们就用这样的info字典:
备注:
译者: