Revision 9d20fe23 snf-astakos-app/astakos/im/management/commands/user-list.py
b/snf-astakos-app/astakos/im/management/commands/user-list.py | ||
---|---|---|
35 | 35 |
|
36 | 36 |
from django.core.management.base import NoArgsCommand |
37 | 37 |
|
38 |
from astakos.im.models import AstakosUser, AstakosUserAuthProvider |
|
38 |
from astakos.im.models import AstakosUser, AstakosUserAuthProvider, Group
|
|
39 | 39 |
|
40 | 40 |
from ._common import format, filter_results |
41 | 41 |
|
... | ... | |
56 | 56 |
dest='pending', |
57 | 57 |
default=False, |
58 | 58 |
help="List only users pending activation"), |
59 |
make_option('--auth-providers', |
|
60 |
action='store_true', |
|
61 |
dest='auth_providers', |
|
62 |
default=False, |
|
63 |
help="Display user authentication providers"), |
|
64 |
make_option('--group', |
|
65 |
action='append', |
|
66 |
dest='groups', |
|
67 |
default=None, |
|
68 |
help="Only show users that belong to the specified goups"), |
|
59 | 69 |
make_option('-n', |
60 | 70 |
action='store_true', |
61 | 71 |
dest='pending_send_mail', |
Also available in: Unified diff