From 67a897f9c39f6ae4aa5b2e3452941912c2f5242d Mon Sep 17 00:00:00 2001 From: Bai Date: Thu, 17 Jun 2021 11:46:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9ldap=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/settings/utils/ldap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/settings/utils/ldap.py b/apps/settings/utils/ldap.py index 72c3c4fdf..6eeab1daa 100644 --- a/apps/settings/utils/ldap.py +++ b/apps/settings/utils/ldap.py @@ -370,7 +370,7 @@ class LDAPImportUtil(object): try: obj, created = self.update_or_create(user) if created: - instances.append(user) + instances.append(obj) except Exception as e: errors.append({user['username']: str(e)}) logger.error(e)