Django Book 翻译
菜单>:
TOC
返回
原文:
While this flexibility is useful, using ``order_by()`` all the time can be quite repetitive. Most of the time youll have a particular field you usually want to order by. In these cases, Django lets you attach a default ordering to the model:
翻译:
每次都要用 ``order_by()`` 显得有点啰嗦。 大多数时间你通常只会对某些 字段进行排序。在这种情况下,Django让你可以指定模型的缺省排序方式:
备注:
译者: