Django Book 翻译
菜单>:
TOC
返回
原文:
Finally, note that ``items()`` in this example also takes the ``obj`` argument. The algorithm for ``items`` is the same as described in the previous step first, it tries ``items(obj)`` , then ``items()`` , and then finally an ``items`` class attribute (which should be a list).
翻译:
最后,值得注意的是,这个例子中的 ``items()`` 使用 ``obj`` 参数。对于 ``items`` 的算法就如同上面第一步所描述的那样,首先尝试 ``items(obj)`` , 然后是 ``items()`` ,最后是 ``items`` 类属性(必须是一个列表)。
备注:
译者: