Commit 8f0c73b3 authored by Serge S. Koval's avatar Serge S. Koval

Updated example

parent fba71aef
......@@ -88,7 +88,7 @@ class FileView(sqla.ModelView):
form_args = {
'path': {
'label': 'File',
'path': file_path
'base_path': file_path
}
}
......@@ -109,7 +109,7 @@ class ImageView(sqla.ModelView):
# In this case, Flask-Admin won't attempt to merge various parameters for the field.
form_extra_fields = {
'path': form.ImageUploadField('Image',
path=file_path,
base_path=file_path,
thumbnail_size=(100, 100, True))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment