|
|
@@ -537,14 +537,15 @@ class MPTTColumn(tables.TemplateColumn):
|
|
|
"""
|
|
|
template_code = """
|
|
|
{% load helpers %}
|
|
|
- {% for i in record.level|as_range %}<i class="mdi mdi-circle-small"></i>{% endfor %}
|
|
|
+ {% if not table.order_by %}
|
|
|
+ {% for i in record.level|as_range %}<i class="mdi mdi-circle-small"></i>{% endfor %}
|
|
|
+ {% endif %}
|
|
|
<a href="{{ record.get_absolute_url }}">{{ record.name }}</a>
|
|
|
"""
|
|
|
|
|
|
def __init__(self, *args, **kwargs):
|
|
|
super().__init__(
|
|
|
template_code=self.template_code,
|
|
|
- orderable=False,
|
|
|
attrs={'td': {'class': 'text-nowrap'}},
|
|
|
*args,
|
|
|
**kwargs
|