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