Django Book 翻译
菜单>:
TOC
返回
原文:
``items()`` is simply a method that returns a list of objects that should be included in the feed as ``
`` elements. Although this example returns ``NewsItem`` objects using Djangos database API, ``items()`` doesnt have to return model instances.
翻译:
``items()`` 是一个方法,返回一个用以包含在包含在feed的 ``
`` 元素里的 list 虽然例子里用Djangos database API返回的 ``NewsItem`` 对象, ``items()`` 不一定必须返回 model的实例
备注:
译者: