mitsuhiko/flask-sqlalchemy — Issue #68: paginate() not working on relationships
Author: fdemmer
Created: 2012-01-10 14:10:06+00:00
State: open

When querying using a mapped class or instance, the `query_class` is `flaskext.sqlalchemy.BaseQuery` and i get the expected exception with the following:

user.query.paginate()
TypeError: paginate() takes at least 2 arguments (1 given)

But when using a relationship configured on a class or instance `query_class` is None and paginate() not available.

user.roles.paginate()
AttributeError: 'AppenderQuery' object has no attribute 'paginate'