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
094690fc
Commit
094690fc
authored
Nov 03, 2014
by
Christian Wygoda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made InlineFieldList compatible with WTForms 2
parent
beb637fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
fields.py
flask_admin/model/fields.py
+3
-2
setup.py
setup.py
+1
-1
No files found.
flask_admin/model/fields.py
View file @
094690fc
...
@@ -13,8 +13,10 @@ class InlineFieldList(FieldList):
...
@@ -13,8 +13,10 @@ class InlineFieldList(FieldList):
def
__init__
(
self
,
*
args
,
**
kwargs
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
(
InlineFieldList
,
self
)
.
__init__
(
*
args
,
**
kwargs
)
super
(
InlineFieldList
,
self
)
.
__init__
(
*
args
,
**
kwargs
)
def
__call__
(
self
,
**
kwargs
):
# Create template
# Create template
self
.
template
=
self
.
unbound_field
.
bind
(
form
=
None
,
name
=
''
)
self
.
template
=
self
.
unbound_field
.
bind
(
form
=
None
,
name
=
''
,
_meta
=
self
.
meta
)
# Small hack to remove separator from FormField
# Small hack to remove separator from FormField
if
isinstance
(
self
.
template
,
FormField
):
if
isinstance
(
self
.
template
,
FormField
):
...
@@ -22,7 +24,6 @@ class InlineFieldList(FieldList):
...
@@ -22,7 +24,6 @@ class InlineFieldList(FieldList):
self
.
template
.
process
(
None
)
self
.
template
.
process
(
None
)
def
__call__
(
self
,
**
kwargs
):
return
self
.
widget
(
self
,
return
self
.
widget
(
self
,
template
=
self
.
template
,
template
=
self
.
template
,
check
=
self
.
display_row_controls
,
check
=
self
.
display_row_controls
,
...
...
setup.py
View file @
094690fc
...
@@ -45,7 +45,7 @@ setup(
...
@@ -45,7 +45,7 @@ setup(
platforms
=
'any'
,
platforms
=
'any'
,
install_requires
=
[
install_requires
=
[
'Flask>=0.7'
,
'Flask>=0.7'
,
'wtforms
<2.0
'
'wtforms'
],
],
tests_require
=
[
tests_require
=
[
'nose>=1.0'
,
'nose>=1.0'
,
...
...
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