Flask-sqlalchemy column alias for browser output
问题 I'm using a for loop to output the columns and values of a single database row. This is all working but there are a couple of issues. The column names aren't suitable to output in the browser so I'm looking for a way to associate an alias (not sure this is the correct term) eg. column names: cust_name cust_area Desired output: Customer name Customer area models.py class Customers(db.Model): id = db.Column(db.Integer, primary_key = True) cust_name = db.Column(db.String(64)) cust_area = db