{% with "whoisdb:"|add:prefix|add:"-detail" as detailView %} {% with "whoisdb:"|add:prefix|add:"-delete" as deleteView %} {% with "whoisdb:"|add:prefix|add:"-edit" as editView %} {{ obj.handle }} {{ objType }} {{obj.name }}{{ obj.description }} {% for contact in obj.admin_c.all %}{{ contact }} {% endfor %} Edit Delete {% endwith %} {% endwith %} {% endwith %}