From 9a741aa1467ee76d3065032afb7c76e870d0aa41 Mon Sep 17 00:00:00 2001 From: Konsta Vesterinen Date: Thu, 23 Jan 2014 09:49:24 +0200 Subject: [PATCH] Update agg docs --- sqlalchemy_utils/aggregates.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sqlalchemy_utils/aggregates.py b/sqlalchemy_utils/aggregates.py index 744a734..3be41b3 100644 --- a/sqlalchemy_utils/aggregates.py +++ b/sqlalchemy_utils/aggregates.py @@ -84,6 +84,9 @@ Simple aggregates Custom aggregate expressions ---------------------------- +Aggregate expression can be virtually any SQL expression not just a simple function taking one parameter. You can try things such as subqueries and different kinds of functions. + +In the following example we have a Catalog of products where each catalog knows the net worth of its products. :: @@ -294,7 +297,6 @@ Average movie rating TODO ---- -* Support calculation of many-to-many aggregates * Special consideration should be given to `deadlocks`_.