Some minor naming changes
This commit is contained in:
@@ -258,6 +258,7 @@ Multi-level aggregates
|
|||||||
TODO
|
TODO
|
||||||
----
|
----
|
||||||
|
|
||||||
|
* Support calculation of many-to-many aggregates
|
||||||
* Special consideration should be given to `deadlocks`_.
|
* Special consideration should be given to `deadlocks`_.
|
||||||
|
|
||||||
|
|
||||||
@@ -281,10 +282,10 @@ class AggregatedAttribute(declared_attr):
|
|||||||
fget,
|
fget,
|
||||||
relationship,
|
relationship,
|
||||||
expr,
|
expr,
|
||||||
*arg,
|
*args,
|
||||||
**kw
|
**kwargs
|
||||||
):
|
):
|
||||||
super(AggregatedAttribute, self).__init__(fget, *arg, **kw)
|
super(AggregatedAttribute, self).__init__(fget, *args, **kwargs)
|
||||||
self.__doc__ = fget.__doc__
|
self.__doc__ = fget.__doc__
|
||||||
self.expr = expr
|
self.expr = expr
|
||||||
self.relationship = relationship
|
self.relationship = relationship
|
||||||
|
@@ -34,7 +34,7 @@ class TestLazyEvaluatedSelectExpressionsForAggregates(TestCase):
|
|||||||
self.Catalog = Catalog
|
self.Catalog = Catalog
|
||||||
self.Product = Product
|
self.Product = Product
|
||||||
|
|
||||||
def test_assigns_aggregates_insert(self):
|
def test_assigns_aggregates_on_insert(self):
|
||||||
catalog = self.Catalog(
|
catalog = self.Catalog(
|
||||||
name=u'Some catalog'
|
name=u'Some catalog'
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user