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
02084e12
Commit
02084e12
authored
Mar 26, 2016
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1241 from pawl/remove_unnecessary_indention
remove unnecessary indention in form.py convert
parents
624b0d8e
03a2bc6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
94 additions
and
96 deletions
+94
-96
form.py
flask_admin/contrib/sqla/form.py
+94
-96
No files found.
flask_admin/contrib/sqla/form.py
View file @
02084e12
...
@@ -147,9 +147,7 @@ class AdminModelConverter(ModelConverterBase):
...
@@ -147,9 +147,7 @@ class AdminModelConverter(ModelConverterBase):
# Check if it is relation or property
# Check if it is relation or property
if
hasattr
(
prop
,
'direction'
):
if
hasattr
(
prop
,
'direction'
):
return
self
.
_convert_relation
(
prop
,
kwargs
)
return
self
.
_convert_relation
(
prop
,
kwargs
)
else
:
elif
hasattr
(
prop
,
'columns'
):
# Ignore pk/fk
# Ignore pk/fk
if
hasattr
(
prop
,
'columns'
):
# Check if more than one column mapped to the property
# Check if more than one column mapped to the property
if
len
(
prop
.
columns
)
>
1
:
if
len
(
prop
.
columns
)
>
1
:
columns
=
filter_foreign_columns
(
model
.
__table__
,
prop
.
columns
)
columns
=
filter_foreign_columns
(
model
.
__table__
,
prop
.
columns
)
...
...
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