Open Cabu opened 2 years ago
Yes, I have the same issue
is it resolved? move to - https://github.com/mrevutskyi/flask-restless-ng
is it resolved? move to - https://github.com/mrevutskyi/flask-restless-ng
I tried flask-restless-ng, but if my memory is still good about it, is too NG and too much change to the API to be a drop-in replacement that work :(
I 'solved' my problem by 'hotpatching' flask_sqlalchemy after its import in my main program:
import flask_sqlalchemy import SQLAlchemy, BaseQuery
def _limit(self):
return self.limit()
setattr(BaseQuery, '_Limit', _Limit)
it's ok if the project is old one. but for someone new learner/project we can move to NG not an issue any is preferred.
flask_restless/views/helpers.py use query._limit who is not anymore a Query class method in sqlalchemy since 24 may 2021.