1. Guillaume Camera
  2. WebHelpers

Commits

Ben Bangert  committed fa9bf4a

Use anything except 0.3

  • Participants
  • Parent commits 1f234b0
  • Branches trunk

Comments (0)

Files changed (1)

File webhelpers/paginate.py

View file
  • Ignore whitespace
     # 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)