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
810e193c
Commit
810e193c
authored
Nov 17, 2014
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #691 from arsgeografica/wtf2
WForms2 compatibility – resumed
parents
cd99ca47
b953dda1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
2 deletions
+17
-2
.travis.yml
.travis.yml
+5
-1
fields.py
flask_admin/model/fields.py
+5
-1
travis_wtf1.txt
travis_wtf1.txt
+0
-0
travis_wtf2.txt
travis_wtf2.txt
+7
-0
No files found.
.travis.yml
View file @
810e193c
...
@@ -4,7 +4,11 @@ python:
...
@@ -4,7 +4,11 @@ python:
-
"
2.7"
-
"
2.7"
-
"
3.3"
-
"
3.3"
install
:
"
pip
install
-r
travis.txt
--use-mirrors"
env
:
-
REQUIREMENTS=travis_wtf1.txt
-
REQUIREMENTS=travis_wtf2.txt
install
:
"
pip
install
-r
$REQUIREMENTS
--use-mirrors"
services
:
mongodb
services
:
mongodb
...
...
flask_admin/model/fields.py
View file @
810e193c
...
@@ -15,7 +15,11 @@ class InlineFieldList(FieldList):
...
@@ -15,7 +15,11 @@ class InlineFieldList(FieldList):
def
__call__
(
self
,
**
kwargs
):
def
__call__
(
self
,
**
kwargs
):
# Create template
# Create template
template
=
self
.
unbound_field
.
bind
(
form
=
None
,
name
=
''
)
meta
=
getattr
(
self
,
'meta'
,
None
)
if
meta
:
template
=
self
.
unbound_field
.
bind
(
form
=
None
,
name
=
''
,
_meta
=
meta
)
else
:
template
=
self
.
unbound_field
.
bind
(
form
=
None
,
name
=
''
)
# Small hack to remove separator from FormField
# Small hack to remove separator from FormField
if
isinstance
(
template
,
FormField
):
if
isinstance
(
template
,
FormField
):
template
.
separator
=
''
template
.
separator
=
''
...
...
travis.txt
→
travis
_wtf1
.txt
View file @
810e193c
File moved
travis_wtf2.txt
0 → 100644
View file @
810e193c
Flask>=0.7
wtforms>=2.0
Flask-SQLAlchemy>=0.15
peewee
wtf-peewee
flask-mongoengine
pillow
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