Django Book 翻译
菜单>:
TOC
返回
原文:
With this model, ``Photo.objects.all()`` will return all ``Photo`` objects in the database, but ``Photo.on_site.all()`` will return only the ``Photo`` objects associated with the current site, according to the ``SITE_ID`` setting.
翻译:
通过该模型, ``Photo.objects.all()`` 将返回数据库中所有的 ``Photo`` 对象,而 ``Photo.on_site.all()`` 仅根据 ``SITE_ID`` 设置返回与当前站点相关联的 ``Photo`` 对象。
备注:
译者: