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', {
|
||||
'object_list': index_instance_list,
|
||||
'extra_columns_preffixed': [
|
||||
'extra_columns': [
|
||||
{
|
||||
'name': _('Node'),
|
||||
'attribute': encapsulate(lambda x: index_instance_item_link(x))
|
||||
|
||||
@@ -58,10 +58,6 @@
|
||||
<th>{% trans 'Identifier' %}</th>
|
||||
{% endif %}
|
||||
|
||||
{% for column in extra_columns_preffixed %}
|
||||
<th>{{ column.name }}</th>
|
||||
{% endfor %}
|
||||
|
||||
{% for column in object_list.0|get_model_list_columns %}
|
||||
<th>{{ column.name }}</th>
|
||||
{% endfor %}
|
||||
@@ -96,15 +92,6 @@
|
||||
<td>{% if not hide_link %}<a href="{{ object.get_absolute_url }}">{{ object }}</a>{% else %}{{ object }}{% endif %}</td>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% for column in extra_columns_preffixed %}
|
||||
{% 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 %}
|
||||
<td>{{ object|object_property:column.attribute }}</td>
|
||||
|
||||
Reference in New Issue
Block a user