flask-mongoengine icon indicating copy to clipboard operation
flask-mongoengine copied to clipboard

Default Value of formdata in ModelForm constructor

Open wiep opened this issue 11 years ago • 1 comments

The default value of formdata in ModelForm constructor should be flask.ext.wtf.form._Auto. Thereby the ModelForm instance is automatically updated with the form data on a submit. See lepture/flask-wtf

wiep avatar Sep 30 '13 12:09 wiep

The benefit would be you could write

form()
form(obj=obj)

instead of

form(request.form)
form(request.form, obj)

so you don't have to pass request.form explicitly. Is that it?

Just to be sure I understand.

Why not? Any objection anyone?

lafrech avatar Feb 23 '16 16:02 lafrech