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
d0a2bc26
Commit
d0a2bc26
authored
Jan 28, 2017
by
Paul Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent column_list from being used for details view
parent
26ed0bb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
base.py
flask_admin/model/base.py
+7
-5
No files found.
flask_admin/model/base.py
View file @
d0a2bc26
...
...
@@ -856,7 +856,8 @@ class BaseModelView(BaseView, ActionsMixin):
self
.
_sortable_columns
=
self
.
get_sortable_columns
()
# Details view
self
.
_details_columns
=
self
.
get_details_columns
()
if
self
.
can_view_details
:
self
.
_details_columns
=
self
.
get_details_columns
()
# Export view
self
.
_export_columns
=
self
.
get_export_columns
()
...
...
@@ -993,11 +994,12 @@ class BaseModelView(BaseView, ActionsMixin):
Uses `get_column_names` to get a list of tuples with the model
field name and formatted name for the columns in `column_details_list`
and not in `column_details_exclude_list`. If `column_details_list`
is not set, it will attempt to use the columns from `column_list`
or finally the columns from `scaffold_list_columns` will be used.
is not set, the columns from `scaffold_list_columns` will be used.
"""
only_columns
=
(
self
.
column_details_list
or
self
.
column_list
or
self
.
scaffold_list_columns
())
try
:
only_columns
=
self
.
column_details_list
or
self
.
scaffold_list_columns
()
except
NotImplementedError
:
raise
Exception
(
'Please define column_details_list'
)
return
self
.
get_column_names
(
only_columns
=
only_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