This commit is contained in:
nikolark committed 2015-05-09 23:49:48 +02:00
1 parent c7e8466666
commit 68a2ae3b80
1 file changed
+1 -1
@@ -60,7 +60,7 @@ class Command(BaseCommand):
if self.options['exclude_existing']:
ldap_active_members = LdapGroup.objects.get(name=self.ACTIVE_USERS_GROUP).members
ldap_users = ldap_users.exclude(username__in=ldap_active_members)
ldap_users.values_list('username', flat=True)
ldap_users = ldap_users.values_list('username', flat=True)
if self.options['verbosity'] == '3':
self.stdout.write('Found {} LDAP users'.format(len(ldap_users)))