Commit 2c1ec57d authored by Jan Runge's avatar Jan Runge

Fix example in column_type_formatters docstring

parent 7a35ce85
...@@ -115,9 +115,10 @@ class BaseModelView(BaseView, ActionsMixin): ...@@ -115,9 +115,10 @@ class BaseModelView(BaseView, ActionsMixin):
If you want to display `NULL` instead of an empty string, you can do If you want to display `NULL` instead of an empty string, you can do
something like this:: something like this::
from flask.ext.admin import typefmt from flask.ext.admin.model import typefmt
MY_DEFAULT_FORMATTERS = dict(typefmt.BASE_FORMATTERS).extend({ MY_DEFAULT_FORMATTERS = dict(typefmt.BASE_FORMATTERS)
MY_DEFAULT_FORMATTERS.update({
type(None): typefmt.null_formatter type(None): typefmt.null_formatter
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment