manage: never allow sorting by "via" (#21210)

This commit is contained in:
Frédéric Péters 2018-01-16 16:59:49 +01:00
parent fd6f2ac2ef
commit acc2b3d2ba
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class UserRolesTable(tables.Table):
ou = tables.Column()
via = tables.TemplateColumn(
'''{% if not row.record.member %}{% for rel in row.record.child_relation.all %}{{ rel.child }} {% if not forloop.last %}, {% endif %}{% endfor %}{% endif %}''',
verbose_name=_('Inherited from'))
verbose_name=_('Inherited from'), orderable=False)
class Meta:
models = get_role_model()