I am joining two models without a foreign key:
Models:
class Users(db.Model): __tablename__ = \"Users\" userName = db.Column(db.String, primary_k
You need to tell SQLAlchemy how to join the tables. Try something like this:
result = db.session.query(Users).join(TimeOff,Users.userName==TimeOff.userName)