flask-mongoengine
flask-mongoengine copied to clipboard
Default Value of formdata in ModelForm constructor
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
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?