{% extends "outside_template/base.html" %} {% load staticfiles %}{% load base %} {% block content %} {% if has_add_permission or has_change_permission or has_delete_permission %}

{% block tituloapp %}Detalhe {{ model_name }}{% endblock tituloapp %}

{% for field in object_list %} {% if not forloop.first and forloop.counter0|divisibleby:2 %}
{% endif %}
{{ field.0|capfirst }}: {% if not field.1 is None and field.1 != '' %}

{{ field.1|safe }}

{% else %}

Não contem o valor

{% endif %}
{% endfor %}
{% for field in many_fields %} {{ field.0|capfirst }}
{% for obj in field.1.all %} {% if not forloop.first and forloop.counter0|divisibleby:2 %}
{% endif %}

{{ obj|safe }}

{% endfor %}
{% endfor %}
{% block buttonbar %}
Voltar
{% endblock buttonbar %}
{% else %} {% endif %} {% endblock content %}