Flask Admin ModelView of various fields between CREATE and EDIT

In a Flask application using Flask Admin, I would like to be able to define different form fields in the Edit section of the ModelView than in the Create section.

The form_columns parameter applies to both Create and Edit, but I cannot find a way to give different sets of columns for each section.

+4
python flask flask-admin
source share
1 answer

You can use form_edit_rules and form_create_rules to override the columns / fields of the form.

+4
source share

All Articles