This commit is contained in:
Kovid Goyal 2012-07-04 10:37:08 +05:30
parent 6699547216
commit 73583f616b

View File

@ -104,9 +104,10 @@ def render_data(mi, use_roman_numbers=True, all_fields=False):
field = 'title_sort' field = 'title_sort'
if all_fields: if all_fields:
display = True display = True
isnull = mi.is_null(field)
if metadata['datatype'] == 'bool': if metadata['datatype'] == 'bool':
isnull = mi.get(field) is None isnull = mi.get(field) is None
else:
isnull = mi.is_null(field)
if (not display or not metadata or isnull or field == 'comments'): if (not display or not metadata or isnull or field == 'comments'):
continue continue
name = metadata['name'] name = metadata['name']