{% extends 'admin/model/list.html' %} {% block list_row scoped %} {% if actions %} {% endif %} {% block list_row_actions_column scoped %} {% if admin_view.column_display_actions %} {% block list_row_actions scoped %} {% for action in list_row_actions %} {{ action.render_ctx(get_pk_value(row), row) }} {% endfor %} {% endblock %} {%- endif -%} {% endblock %} {% for c, name in list_columns %} {% if admin_view.is_editable(c) %} {% set form = list_forms[get_pk_value(row)] %} {% if form.csrf_token %} {{ form[c](pk=get_pk_value(row), display_value=get_value(row, c), csrf=form.csrf_token._value()) }} {% elif csrf_token %} {{ form[c](pk=get_pk_value(row), display_value=get_value(row, c), csrf=csrf_token()) }} {% else %} {{ form[c](pk=get_pk_value(row), display_value=get_value(row, c)) }} {% endif %} {% else %} {% if c in admin_view.image_fields %} {% else %} {{ get_value(row, c) }} {% endif %} {% endif %} {% endfor %} {% endblock %}