Allow model query_class to be modified by SQLAlchemy.query_class.