This commit is contained in:
nikolark committed 2015-04-03 17:47:03 +02:00
1 parent 51b767e99e
commit f7045f75da
1 file changed
-1
@@ -12,7 +12,6 @@ class Command(BaseCommand):
help = 'Syncs users from LDAP to our Wordpress installations'
def handle(self, *args, **options):
# TODO rewrite to use InsideUser and InsideGroup
active_members = LdapGroup.objects.get(name="dns-aktiv").members
active_users = LdapUser.objects.filter(username__in=active_members)
users_out = [[u.username, u.first_name, u.last_name, u.email] for u in active_users]