Revision 304acb60 snf-astakos-app/astakos/im/management/commands/user_list.py

b/snf-astakos-app/astakos/im/management/commands/user_list.py
71 71
        elif options['pending_send_mail']:
72 72
            users = users.filter(is_active=False, activation_sent=None)
73 73
        
74
        labels = ('id', 'email', 'real name', 'active', 'admin', 'provider', 'groups')
74
        labels = ('id', 'email', 'real name', 'active', 'admin', 'provider')
75 75
        columns = (3, 24, 24, 6, 5, 12, 24)
76 76
        
77 77
        if not options['csv']:
......
84 84
            id = str(user.id)
85 85
            active = format_bool(user.is_active)
86 86
            admin = format_bool(user.is_superuser)
87
            fields = (id, user.email, user.realname, active, admin, user.provider,
88
                      ','.join([g.name for g in user.groups.all()]))
87
            fields = (id, user.email, user.realname, active, admin, user.provider)
89 88
            
90 89
            if options['csv']:
91 90
                line = '|'.join(fields)

Also available in: Unified diff