[fix] [hot] compact print: check in_format_data for print format builder prints

This commit is contained in:
Anand Doshi 2016-03-14 18:20:29 +05:30
parent e66b6ce01f
commit ad61a28730

View File

@ -35,7 +35,7 @@
{% if compact -%}
{%- for fieldname in doc.flags.show_in_description -%}
{% if doc.get(fieldname) -%}
{% if doc.get(fieldname) and doc.in_format_data(fieldname) -%}
<p>
<strong>{{ _(doc.meta.get_label(fieldname)) }}:</strong>
{{ doc.get_formatted(fieldname, translated=True) }}