From 0e81609e03e55703d1d95850af188f36d0572638 Mon Sep 17 00:00:00 2001 From: Konsta Vesterinen Date: Fri, 8 Nov 2013 16:22:18 +0200 Subject: [PATCH] Testing local toc --- docs/index.rst | 4 +--- sqlalchemy_utils/aggregates.py | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 2a97d28..e24c6bb 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,9 +1,7 @@ SQLAlchemy-Utils ================ -.. toctree:: - :maxdepth: 2 - +.. contents:: SQLAlchemy-Utils provides custom data types and various utility functions for SQLAlchemy. diff --git a/sqlalchemy_utils/aggregates.py b/sqlalchemy_utils/aggregates.py index c68c8ee..aa94ba2 100644 --- a/sqlalchemy_utils/aggregates.py +++ b/sqlalchemy_utils/aggregates.py @@ -93,7 +93,7 @@ Custom aggregate expressions def net_worth(self): return sa.Column(sa.Integer) - @aggregated_attr.expression + @net_worth.expression def net_worth(self): return sa.func.sum(Product.price) @@ -177,7 +177,7 @@ Multi-level aggregates def net_worth(self): return sa.Column(sa.Integer) - @aggregated_attr.expression + @net_worth.expression def net_worth(self): return sa.func.sum(Product.price)