Testing local toc
This commit is contained in:
@@ -1,9 +1,7 @@
|
|||||||
SQLAlchemy-Utils
|
SQLAlchemy-Utils
|
||||||
================
|
================
|
||||||
|
|
||||||
.. toctree::
|
.. contents::
|
||||||
:maxdepth: 2
|
|
||||||
|
|
||||||
|
|
||||||
SQLAlchemy-Utils provides custom data types and various utility functions for SQLAlchemy.
|
SQLAlchemy-Utils provides custom data types and various utility functions for SQLAlchemy.
|
||||||
|
|
||||||
|
@@ -93,7 +93,7 @@ Custom aggregate expressions
|
|||||||
def net_worth(self):
|
def net_worth(self):
|
||||||
return sa.Column(sa.Integer)
|
return sa.Column(sa.Integer)
|
||||||
|
|
||||||
@aggregated_attr.expression
|
@net_worth.expression
|
||||||
def net_worth(self):
|
def net_worth(self):
|
||||||
return sa.func.sum(Product.price)
|
return sa.func.sum(Product.price)
|
||||||
|
|
||||||
@@ -177,7 +177,7 @@ Multi-level aggregates
|
|||||||
def net_worth(self):
|
def net_worth(self):
|
||||||
return sa.Column(sa.Integer)
|
return sa.Column(sa.Integer)
|
||||||
|
|
||||||
@aggregated_attr.expression
|
@net_worth.expression
|
||||||
def net_worth(self):
|
def net_worth(self):
|
||||||
return sa.func.sum(Product.price)
|
return sa.func.sum(Product.price)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user