<h2>{{object_data.model_name.title}}</h2>

<form method="POST" action=""  enctype="multipart/form-data">
    {% csrf_token %}
    {{ form.as_p }}
    {% for field, v, iter in object_data.related_fields_and_values %}
        <p><span class="field_label">{{ field.name.title }}:</span>
        {% if iter %}
            {% for val, link in v %}
                {% if link %}
                    <span class="field_value"><a href="{{ link }}">{{ val }}</a></span>
                {% else %}
                    <span class="field_value">{{ val }}</span>
                {% endif %}
            {% endfor %}
        {% else %}
            {% if v.1 %}
                <span class="field_value"><a href="{{ v.1 }}">{{ v.0 }}</a></span>
            {% else %}
                <span class="field_value">{{ v.0 }}</span>
            {% endif %}
        {% endif %}
        </p>
    {% endfor %}
    <p><a class="btn btn-default rapid-submit-form">Alterar</a></p>
</form>
