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
73a16803
Commit
73a16803
authored
Oct 25, 2012
by
Serge S. Koval
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated documentation
parent
9cc1516c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
base.py
flask_admin/model/base.py
+2
-2
No files found.
flask_admin/model/base.py
View file @
73a16803
...
@@ -96,7 +96,7 @@ class BaseModelView(BaseView, ActionsMixin):
...
@@ -96,7 +96,7 @@ class BaseModelView(BaseView, ActionsMixin):
By default, two types are formatted:
By default, two types are formatted:
1. ``None`` will be displayed as empty string
1. ``None`` will be displayed as empty string
2. ``bool`` will be displayed as check
box
2. ``bool`` will be displayed as check
if it is ``True``
If you don't like default behavior and don't want any type formatters
If you don't like default behavior and don't want any type formatters
applied, just override this property with empty dictionary::
applied, just override this property with empty dictionary::
...
@@ -104,7 +104,7 @@ class BaseModelView(BaseView, ActionsMixin):
...
@@ -104,7 +104,7 @@ class BaseModelView(BaseView, ActionsMixin):
class MyModelView(BaseModelView):
class MyModelView(BaseModelView):
list_type_formatters = dict()
list_type_formatters = dict()
If you
don't
want to display `NULL` instead of empty string, you can do
If you want to display `NULL` instead of empty string, you can do
something like this::
something like this::
from flask.ext.admin import typefmt
from flask.ext.admin import typefmt
...
...
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