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
4d165022
Commit
4d165022
authored
Mar 22, 2012
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Documentation fixes.
parent
9361fd15
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
base.py
flask_adminex/base.py
+6
-1
fileadmin.py
flask_adminex/ext/fileadmin.py
+1
-1
No files found.
flask_adminex/base.py
View file @
4d165022
...
...
@@ -311,7 +311,12 @@ class Admin(object):
self
.
_add_view_to_menu
(
view
)
def
_add_view_to_menu
(
self
,
view
):
# Update menu
"""
Add view to the menu tree
`view`
View to add
"""
if
view
.
category
:
category
=
self
.
_menu_categories
.
get
(
view
.
category
)
...
...
flask_adminex/ext/fileadmin.py
View file @
4d165022
...
...
@@ -67,7 +67,7 @@ class FileAdmin(BaseView):
admin = Admin()
path = op.join(op.dirname(__file__), 'static')
admin.add_view(
path, '/static/', name='Static Files'
)
admin.add_view(
FileAdmin(path, '/static/', name='Static Files')
)
admin.setup_app(app)
"""
...
...
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