limit choices with dropdown in flask-admin
My SQLAlchemy model has a String field that I would like to limit to a few choices. I am wondering how I would be able to create a dropdown for this field in the Flask-Admin interface that would ensure that the db is only populated with one of my choices. If I let the user manually enter these fields, they may spell them incorrectly, etc. enum , form_choices and form_args Your question is about restricting values at the form level, but we can also briefly discuss it at the schema level. A. Restricting Values at the Database Level: enum fields To limit the range of allowable values, the first