{% load i18n %} {% if self.as_pdf %} {% with queryset=self.get_queryset %} {% if not self.is_list_view %}
# | {% for column_name, lookup, sortable, to in self.column_names %}{{ column_name }} | {% endfor %}
---|---|
{{ forloop.counter }} | {% for column_name, lookup, sortable, to in self.column_names %} {% with value=obj|getattr:lookup %}{{ value|print_format|safe }} | {% endwith %} {% endfor %}