Commit 55b7b079 authored by Artem Serga's avatar Artem Serga

Add extra type formatter for `list` type

parent c1d85d3c
......@@ -31,7 +31,18 @@ def bool_formatter(value):
return Markup('<i class="icon-ok"></i>' if value else '')
def list_formatter(values):
"""
Return string with comma separated values
:param values:
Value to check
"""
return u', '.join(values)
DEFAULT_FORMATTERS = {
type(None): empty_formatter,
bool: bool_formatter
bool: bool_formatter,
list: list_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