Remove usage of extra_columns_preffixed, used only once, replaced. Issue #56
This commit is contained in:
@@ -344,7 +344,7 @@ def index_instance_node_view(request, index_instance_node_pk):
|
|||||||
|
|
||||||
return render_to_response('main/generic_list.html', {
|
return render_to_response('main/generic_list.html', {
|
||||||
'object_list': index_instance_list,
|
'object_list': index_instance_list,
|
||||||
'extra_columns_preffixed': [
|
'extra_columns': [
|
||||||
{
|
{
|
||||||
'name': _('Node'),
|
'name': _('Node'),
|
||||||
'attribute': encapsulate(lambda x: index_instance_item_link(x))
|
'attribute': encapsulate(lambda x: index_instance_item_link(x))
|
||||||
|
|||||||
@@ -58,10 +58,6 @@
|
|||||||
<th>{% trans 'Identifier' %}</th>
|
<th>{% trans 'Identifier' %}</th>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% for column in extra_columns_preffixed %}
|
|
||||||
<th>{{ column.name }}</th>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
{% for column in object_list.0|get_model_list_columns %}
|
{% for column in object_list.0|get_model_list_columns %}
|
||||||
<th>{{ column.name }}</th>
|
<th>{{ column.name }}</th>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@@ -96,16 +92,7 @@
|
|||||||
<td>{% if not hide_link %}<a href="{{ object.get_absolute_url }}">{{ object }}</a>{% else %}{{ object }}{% endif %}</td>
|
<td>{% if not hide_link %}<a href="{{ object.get_absolute_url }}">{{ object }}</a>{% else %}{{ object }}{% endif %}</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for column in extra_columns_preffixed %}
|
{% if not hide_columns %}
|
||||||
{% if column.keep_together %}
|
|
||||||
<td>
|
|
||||||
{{ object|object_property:column.attribute|make_non_breakable }}
|
|
||||||
</td>
|
|
||||||
{% else %}
|
|
||||||
<td>{{ object|object_property:column.attribute }}</td>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
{% if not hide_columns %}
|
|
||||||
{% for column in object|get_model_list_columns %}
|
{% for column in object|get_model_list_columns %}
|
||||||
<td>{{ object|object_property:column.attribute }}</td>
|
<td>{{ object|object_property:column.attribute }}</td>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user