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
c4715f06
Commit
c4715f06
authored
Dec 18, 2018
by
Alan Hamlett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix flake8
parent
402e9a7a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
_backwards.py
flask_admin/_backwards.py
+1
-1
widgets.py
flask_admin/contrib/mongoengine/widgets.py
+6
-6
No files found.
flask_admin/_backwards.py
View file @
c4715f06
...
@@ -11,7 +11,7 @@ import warnings
...
@@ -11,7 +11,7 @@ import warnings
try
:
try
:
from
wtforms.widgets
import
HTMLString
as
Markup
from
wtforms.widgets
import
HTMLString
as
Markup
except
ImportError
:
except
ImportError
:
from
markupsafe
import
Markup
from
markupsafe
import
Markup
# noqa: F401
def
get_property
(
obj
,
name
,
old_name
,
default
=
None
):
def
get_property
(
obj
,
name
,
old_name
,
default
=
None
):
...
...
flask_admin/contrib/mongoengine/widgets.py
View file @
c4715f06
...
@@ -33,9 +33,9 @@ class MongoFileInput(object):
...
@@ -33,9 +33,9 @@ class MongoFileInput(object):
}
}
return
Markup
(
'
%
s<input
%
s>'
%
(
placeholder
,
return
Markup
(
'
%
s<input
%
s>'
%
(
placeholder
,
html_params
(
name
=
field
.
name
,
html_params
(
name
=
field
.
name
,
type
=
'file'
,
type
=
'file'
,
**
kwargs
)))
**
kwargs
)))
class
MongoImageInput
(
object
):
class
MongoImageInput
(
object
):
...
@@ -60,6 +60,6 @@ def __call__(self, field, **kwargs):
...
@@ -60,6 +60,6 @@ def __call__(self, field, **kwargs):
}
}
return
Markup
(
'
%
s<input
%
s>'
%
(
placeholder
,
return
Markup
(
'
%
s<input
%
s>'
%
(
placeholder
,
html_params
(
name
=
field
.
name
,
html_params
(
name
=
field
.
name
,
type
=
'file'
,
type
=
'file'
,
**
kwargs
)))
**
kwargs
)))
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