{% with custom_fields=obj.get_custom_fields %} {% if custom_fields %}
Custom Fields
{% for field, value in custom_fields.items %} {% endfor %}
{{ field }} {% if field.type == 300 and value == True %} {% elif field.type == 300 and value == False %} {% elif field.type == 500 and value %} {{ value|truncatechars:70 }} {% elif field.type == 200 or value %} {{ value }} {% elif field.required %} Not defined {% else %} {% endif %}
{% endif %} {% endwith %}