Projet

Général

Profil

0001-Fix-ordering-by-service-in-the-user-s-roles-table-fi.patch

Benjamin Dauvergne, 23 juin 2015 14:39

Télécharger (1,05 ko)

Voir les différences:

Subject: [PATCH] Fix ordering by service in the user's roles table (fixes
 #7634)

 src/authentic2/manager/tables.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/authentic2/manager/tables.py
101 101
class UserRolesTable(tables.Table):
102 102
    name = tables.Column(accessor='__unicode__', verbose_name=_('name'))
103 103
    ou = tables.Column()
104
    service = tables.Column(order_by='servicerole__service')
104
    service = tables.Column(order_by='service')
105 105
    member = tables.BooleanColumn(verbose_name=_('Direct member'))
106 106
    via = tables.TemplateColumn(
107 107
        '''{% for rel in row.record.child_relation.all %}{{ rel.child }} {% if not forloop.last %}, {% endif %}{% endfor %}''',
108
-