I tried to set a form field as readonly
just for the edit view in a Flask-Admin application. Following the answers to this question I know that if I have this
class MyView(ModelView):
form_widget_args = {
'title': {
'readonly': True
}
}
I can set a form field as readonly
, but this is applied to both create and edit views. How can I apply an argument to the edit view only?
from Readonly form field in edit view - Flask-Admin
No comments:
Post a Comment