Django Book 翻译
菜单>:
TOC
返回
原文:
* To retrieve objects from the database, use the attribute ``Publisher.objects`` . Fetch a list of all ``Publisher`` objects in the database with the statement ``Publisher.objects.all()`` . Behind the scenes, Django executes an SQL ``SELECT`` statement here.
翻译:
* 使用属性 ``Publisher.objects`` 从数据库中获取对象。调用 ``Publisher.objects.all()`` 获取数据库中所有的 ``Publisher`` 对象。此时,Django 在后台执行一条 ``SELECT`` SQL语句。
备注:
译者: