Commits

Ben Bangert committed fa9bf4a

Use anything except 0.3

Comments (0)

Files changed (1)

webhelpers/paginate.py

     # See if the collection is a sequence
     if isinstance(obj, (list, tuple)):
         return obj
-    # Is SQLAlchemy 0.4-0.6 available? (0.3 is not supported - sorry)
-    if sqlalchemy_available[:3] in ['0.4', '0.5', '0.6']:
+    # Is SQLAlchemy 0.4 or better available? (0.3 is not supported - sorry)
+    if sqlalchemy_available[:3] != '0.3':
         # Is the collection a query?
         if isinstance(obj, sqlalchemy.orm.query.Query):
             return _SQLAlchemyQuery(obj)