mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-14 06:50:15 +02:00
correctly trigger ts group updates
This commit is contained in:
parent
6f8e478baf
commit
83e369965c
@ -39,7 +39,7 @@ def m2m_changed_user_groups(sender, instance, action, *args, **kwargs):
|
|||||||
|
|
||||||
def trigger_all_ts_update():
|
def trigger_all_ts_update():
|
||||||
for auth in AuthServicesInfo.objects.filter(teamspeak3_uid__isnull=False):
|
for auth in AuthServicesInfo.objects.filter(teamspeak3_uid__isnull=False):
|
||||||
update_teamspeak3_groups.delay(auth.user)
|
update_teamspeak3_groups.delay(auth.user.pk)
|
||||||
|
|
||||||
@receiver(m2m_changed, sender=AuthTS.ts_group.through)
|
@receiver(m2m_changed, sender=AuthTS.ts_group.through)
|
||||||
def m2m_changed_authts_group(sender, instance, action, *args, **kwargs):
|
def m2m_changed_authts_group(sender, instance, action, *args, **kwargs):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user