{% extends 'base.html' %} {% load get_attribute %} {% block content %} {% for field in field_names %} {% endfor %}
{{ field }} {{ object|get_attribute:field }}
{% endblock %}