From 8875765018e4e9d40aad46e02b0e3f9c446a07f4 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Tue, 3 Mar 2020 14:54:16 +0100 Subject: [PATCH] Fix missing bind=True --- gvaldap/ldaptasks/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gvaldap/ldaptasks/tasks.py b/gvaldap/ldaptasks/tasks.py index 4ac5906..338c726 100644 --- a/gvaldap/ldaptasks/tasks.py +++ b/gvaldap/ldaptasks/tasks.py @@ -157,7 +157,7 @@ def set_ldap_user_password(username, password): return retval -@shared_task(autoretry_for=(DjangoDBUtilsError,), default_retry_delay=10) +@shared_task(bind=True, autoretry_for=(DjangoDBUtilsError,), default_retry_delay=10) def add_ldap_user_to_group(self, username, groupname): """ This task adds the specified user to the given group.