Adding query property to DatabaseMaster for forward compatibility

This commit is contained in:
Christopher Allan Webber 2014-11-30 15:17:09 -06:00
parent f08e31522d
commit 9d82dff6fb

View File

@ -64,6 +64,10 @@ if not DISABLE_GLOBALS:
Session.rollback()
Session.remove()
@property
def query(self):
return Session.query
else:
from sqlalchemy.orm import sessionmaker