• Dmitry Medvinsky's avatar
    Fix file uploads in edit form · 68592086
    Dmitry Medvinsky authored
    I've removed explicit `request.form` passing to edit form in the form instance
    creation. The reason for this is that if we pass `formdata` to the constructor
    it considers that all the data it needs, whilst `request.form` contains no
    information about uploaded files.
    
    If we simply omit passing `request.form` around, Flask-WTF takes care about
    filling the form with `request.form` as well as `request.files`, if there are
    any.
    
    Hence file uploads now work in the model edit.
    68592086
Name
Last commit
Last update
babel Loading commit data...
doc Loading commit data...
examples Loading commit data...
flask_admin Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
LICENSE Loading commit data...
MANIFEST.in Loading commit data...
Makefile Loading commit data...
README.rst Loading commit data...
TODO.txt Loading commit data...
requirements.txt Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...