{% load generic %} {% with "subj_content_type subj_object_id obj_content_type obj_object_id" as exclude_list %} {% modeldict object as d %} {% for key, value in d.items %} {% if key.name not in exclude_list %} {% model_field_template_lookup_list object key "table_row" as template_list %} {% include template_list %} {% endif %} {% endfor %} {% endwith %}
Subject {% if object.subj %}{{ object.subj }}{% endif %}
Object {% if object.obj %}{{ object.obj }}{% endif %}