Add missing 'hide_columns' condition in the list sub template.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-02-23 05:35:52 -04:00
parent dd63bf3c7c
commit 803d56ccf7

View File

@@ -53,9 +53,11 @@
<th>{% trans 'Identifier' %}</th>
{% endif %}
{% for column in object_list|get_source_columns %}
<th>{{ column.label }}</th>
{% endfor %}
{% if not hide_columns %}
{% for column in object_list|get_source_columns %}
<th>{{ column.label }}</th>
{% endfor %}
{% endif %}
{% for column in extra_columns %}
<th>{{ column.name }}</th>