Commits

Christoph Haas committed 0ec1dbe

SQLAlchemy checking failed for non-float-convertable versions like "0.4.2p3"

  • Participants
  • Parent commits a9c72ff

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 float(sqlalchemy_available) >= 0.4:
+    if sqlalchemy_available.startswith('0.4'):
         # Is the collection a query?
         if isinstance(obj, sqlalchemy.orm.query.Query):
             return _SQLAlchemyQuery(obj)