Flask-SQLAlchemy Delete Record by ID
I'm trying to delete specific record within my Flask app by using the record's ID but keep running into errors no matter what I try. The current error message I'm receiving is: "sqlalchemy.exc.ArgumentError sqlalchemy.exc.ArgumentError: subject table for an INSERT, UPDATE or DELETE expected, got Column('id', Integer(), table=<Bank_Time>, primary_key=True, nullable=False) object resolved from <sqlalchemy.orm.attributes.InstrumentedAttribute object at 0x0000023477DE1F80> object." Currently I have a HTML table with a Jinja loop embedded within it that loops through records within the table. Each
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.