{% extends "base.html" %} {% load handletags %} {% block content %}
{{ object }} ({{ object.getClassName }})
{% for field in object|getFields:user %} {% endfor %} {% if object|userCanEdit:user %} {% with "domains:"|add:object.getClassName|lower|add:"-edit" as editView %} {% with "domains:"|add:object.getClassName|lower|add:"-delete" as deleteView %} {% endwith %} {% endwith %} {% endif %}
{{ field.0 }} {% if field.1.through %}{{ field.1.all|linkObjects|default:"-" }}{% else %}{{ field.1|default:"-" }}{% endif %}
ActionsEdit object, Delete object
{% endblock %}