Flask Admin ModelView different fields between CREATE and EDIT
Asked Answered
E

1

6

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.

Eckenrode answered 3/8, 2015 at 22:14 Comment(0)
D
7

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

Deciare answered 12/8, 2015 at 12:25 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.