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
8921d016
Commit
8921d016
authored
Nov 13, 2016
by
Osaetin Daniel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/sqla-hybrid_property
removed deprecated list_columns attribute use column_list instead
parent
bc5ab4e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
app.py
examples/sqla-hybrid_property/app.py
+1
-1
No files found.
examples/sqla-hybrid_property/app.py
View file @
8921d016
...
@@ -37,7 +37,7 @@ class Screen(db.Model):
...
@@ -37,7 +37,7 @@ class Screen(db.Model):
class
ScreenAdmin
(
sqla
.
ModelView
):
class
ScreenAdmin
(
sqla
.
ModelView
):
""" Flask-admin can not automatically find a hybrid_property yet. You will
""" Flask-admin can not automatically find a hybrid_property yet. You will
need to manually define the column in list_view/filters/sorting/etc."""
need to manually define the column in list_view/filters/sorting/etc."""
list_columns
=
[
'id'
,
'width'
,
'height'
,
'number_of_pixels'
]
column_list
=
[
'id'
,
'width'
,
'height'
,
'number_of_pixels'
]
column_sortable_list
=
[
'id'
,
'width'
,
'height'
,
'number_of_pixels'
]
column_sortable_list
=
[
'id'
,
'width'
,
'height'
,
'number_of_pixels'
]
# Flask-admin can automatically detect the relevant filters for hybrid properties.
# Flask-admin can automatically detect the relevant filters for hybrid properties.
...
...
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