Some minor naming changes

This commit is contained in:
Konsta Vesterinen
2013-11-11 10:21:16 +02:00
parent dda1d3ed3e
commit 50bcba3be1
2 changed files with 5 additions and 4 deletions

View File

@@ -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

View File

@@ -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'
) )