diff --git a/crudkit/html/templates/crudkit/_macros.html b/crudkit/html/templates/crudkit/_macros.html index 23dc1c5..ab955fb 100644 --- a/crudkit/html/templates/crudkit/_macros.html +++ b/crudkit/html/templates/crudkit/_macros.html @@ -20,9 +20,9 @@ {% macro rows(items, fields, getp=None) -%} {%- for obj in items -%} - + {%- for f in fields -%} - {{ getp(obj, f) }} + {{ getp(obj, f) if getp(obj, f) is not none else '-' }} {%- endfor -%} {%- else -%} @@ -55,34 +55,34 @@ {% endif %} #} -