Do not require a request when accessing a model's query property. This only works if the SQLAlchemy instance has been bound to an application. Otherwise, a RuntimeError is raised (as opposed to before, where None was returned).
Do not require a request when accessing a model's query property. This
only works if the SQLAlchemy instance has been bound to an application.
Otherwise, a RuntimeError is raised (as opposed to before, where None
was returned).

Signed-off-by: Armin Ronacher <51e1b983df8328b92ad653ca9129d9a11178303a@active-4.com>

underdogio/flask-sqlalchemy,heejongahn/flask-sqlalchemy,marrybird/flask-sqlalchemy,varda/flask-sqlalchemy,lordakshaya/flask-sqlalchemy,justanr/flask-sqlalchemy,juokaz/flask-sqlalchemy,alex/flask-sqlalchemy,jparise/flask-sqlalchemy,heejongahn/flask-sqlalchemy,alex/flask-sqlalchemy,svenstaro/flask-sqlalchemy,underdogio/flask-sqlalchemy,juokaz/flask-sqlalchemy,immunda/flask-sqlalchemy,svenstaro/flask-sqlalchemy,nickw444/flask-sqlalchemy,titansgroup/flask-sqlalchemy,inetCatapult/flask-sqlalchemy,inetCatapult/flask-sqlalchemy,immunda/flask-sqlalchemy,rinlv/flask-sqlalchemy,bcho/flask-sqlalchemy,lordakshaya/flask-sqlalchemy,varda/flask-sqlalchemy,rinlv/flask-sqlalchemy