浏览代码

Fixed typo in docs/topics/db/aggregation.txt.

Tim Graham 7 年之前
父节点
当前提交
00b93c2b1e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/topics/db/aggregation.txt

+ 1 - 1
docs/topics/db/aggregation.txt

@@ -70,7 +70,7 @@ In a hurry? Here's how to do common aggregate queries, assuming the models above
     # Difference between the highest priced book and the average price of all books.
     >>> from django.db.models import FloatField
     >>> Book.objects.aggregate(
-    ...     price_diff=Max('price', output_field=FloatField()) - Avg('price')))
+    ...     price_diff=Max('price', output_field=FloatField()) - Avg('price'))
     {'price_diff': 46.85}
 
     # All the following queries involve traversing the Book<->Publisher