I would suggest you query your database first and pass the row id as the value for your select in html
In your flask app
@app.route('/exhibition', methods=['GET', 'POST'])
def exhibition():
options = session.query(Exhibition) #however you query your db
return render_template('exhibition.html', options = options)
in your html (I am guessing you are using jinja for your templating)
<select>
{%for option in options%}
<option value={{option.id}}>{{option.text}}</option>
{endfor}
</select>
Then you can fetch the row to be modified by the row id which is what you get when the form is posted.
Then when you are updating the row, ensure you specify the specific column to be updated eg
row_to_edit = session.query(Exhibition).filter_by(id = request.form ['input_field']))
#specify what you are updating
row_to_edit.column_to_update = request.form ['input_field']
# Then you can comit column_to_edit
To make sure it is easy for the person editing to identify the column name, and to reduce the burden of having to validate a free text entry matching a column name, i suggest you add a second select field that displays the column names so that free text input is just for the column value
The view above becomes
@app.route('/exhibition', methods=['GET', 'POST'])
def exhibition():
options = session.query(Exhibition) #however you query your db
cols = Exhibition.__table__.columns
return render_template('exhibition.html', options = options, cols = cols)
the second select
<select>
{%for col in cols%}
<option value={{col.key}}>{{col.key}}</option>
{endfor}
</select>
You can make the option text more readable by iterating through the cols and coming up with a list with a value and readable text for the option
specify the column you are updating like this
row_to_edit.getattr(row_to_edit, request.form ['select_field_for_column'] = request.form ['input_field_column_value']
I know the first part is confusing. ordinarily you would do it row_to_edit.column_to_update, but since in our case the column to update is a variable we use getattr() to get the col name equal to the variable
If you are familiar with wtforms, or you are a fast learner, they would give you a more elegant way of handing this