Commit b793dbf2 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki Committed by Christos Stavrakakis
Browse files

astakos: Fix 'user-list' command

Filter results by user groups
parent eee8e421
......@@ -83,7 +83,9 @@ class Command(ListCommand):
action='append',
dest='groups',
default=None,
help="Only show users that belong to the specified goups"),
metavar="GROUP",
help="Only show users that belong to the specified"
" group. Can be used multiple times."),
make_option('--active',
action='store_true',
dest='active',
......@@ -117,6 +119,9 @@ class Command(ListCommand):
if options['pending_verification']:
self.filters['email_verified'] = False
if options['groups']:
self.filters['groups__name__in'] = options['groups']
if options['auth_providers']:
self.fields.extend(['providers'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment