Commits

Christoph Haas committed 7d9e90b

Added support for SQLAlchemy 0.5

  • Participants
  • Parent commits f7fce0d

Comments (0)

Files changed (1)

File webhelpers/paginate.py

     if isinstance(obj, (list, tuple)):
         return obj
     # Is SQLAlchemy 0.4 available? (0.3 is not supported - sorry)
-    if sqlalchemy_available.startswith('0.4'):
+    if sqlalchemy_available.startswith('0.4') or sqlalchemy_available.startswith('0.5'):
         # Is the collection a query?
         if isinstance(obj, sqlalchemy.orm.query.Query):
             return _SQLAlchemyQuery(obj)