Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
flask-admin
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Python-Dev
flask-admin
Commits
8f0c73b3
Commit
8f0c73b3
authored
Jul 30, 2013
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated example
parent
fba71aef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
simple.py
examples/forms/simple.py
+2
-2
No files found.
examples/forms/simple.py
View file @
8f0c73b3
...
@@ -88,7 +88,7 @@ class FileView(sqla.ModelView):
...
@@ -88,7 +88,7 @@ class FileView(sqla.ModelView):
form_args
=
{
form_args
=
{
'path'
:
{
'path'
:
{
'label'
:
'File'
,
'label'
:
'File'
,
'path'
:
file_path
'
base_
path'
:
file_path
}
}
}
}
...
@@ -109,7 +109,7 @@ class ImageView(sqla.ModelView):
...
@@ -109,7 +109,7 @@ class ImageView(sqla.ModelView):
# In this case, Flask-Admin won't attempt to merge various parameters for the field.
# In this case, Flask-Admin won't attempt to merge various parameters for the field.
form_extra_fields
=
{
form_extra_fields
=
{
'path'
:
form
.
ImageUploadField
(
'Image'
,
'path'
:
form
.
ImageUploadField
(
'Image'
,
path
=
file_path
,
base_
path
=
file_path
,
thumbnail_size
=
(
100
,
100
,
True
))
thumbnail_size
=
(
100
,
100
,
True
))
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment