Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flask Admin ModelView different fields between CREATE and EDIT

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

The form_columns setting applies to both Create and Edit, but I can't seem to find a way to give different sets of columns to each section.

like image 285
RobertoCuba Avatar asked Aug 03 '15 22:08

RobertoCuba


1 Answers

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

like image 126
plaes Avatar answered Nov 02 '22 16:11

plaes