From 725af132ec966ffb29e1a2d5df30ed8bdff8acb4 Mon Sep 17 00:00:00 2001 From: Giacomo Spettoli Date: Thu, 16 Jul 2015 16:00:39 +0200 Subject: [PATCH] fix missing new api call --- users_ldap_groups/users_ldap_groups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users_ldap_groups/users_ldap_groups.py b/users_ldap_groups/users_ldap_groups.py index 6aec46d32..68b925c67 100644 --- a/users_ldap_groups/users_ldap_groups.py +++ b/users_ldap_groups/users_ldap_groups.py @@ -92,7 +92,7 @@ class CompanyLDAP(models.Model): logger = logging.getLogger('users_ldap_groups') if self.only_ldap_groups: logger.debug('deleting all groups from user %d' % user_id) - userobj.write([user_id], {'groups_id': [(5, )]}) + user.write({'groups_id': [(5, )]}) for mapping in this.group_mappings: operator = mapping.operator