diff --git a/sqlalchemy_utils/aggregates.py b/sqlalchemy_utils/aggregates.py index 2daa537..a92e24e 100644 --- a/sqlalchemy_utils/aggregates.py +++ b/sqlalchemy_utils/aggregates.py @@ -285,7 +285,7 @@ categories. def net_worth(self): return sa.func.sum(Product.price) - categories = sa.orm.relationship('Product') + categories = sa.orm.relationship('Category') class Category(Base):