mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-13 14:30:17 +02:00
Version conflict
update_or_insert is from a newer version of django. gotta use .save()
This commit is contained in:
parent
425aef081d
commit
d3d1463404
@ -121,7 +121,10 @@ class Teamspeak3Manager:
|
||||
if group.ts_group_id not in remote_groups.values():
|
||||
TSgroup.objects.filter(ts_group_id=group.ts_group_id).delete()
|
||||
for key in remote_groups:
|
||||
TSgroup.objects.update_or_create(ts_group_id=remote_groups[key],ts_group_name=key)
|
||||
g = TSgroup(ts_group_id=remote_groups[key],ts_group_name=key)
|
||||
q = TSgroup.objects.filters(ts_group_id=g.ts_group_id)
|
||||
if !q:
|
||||
g.save()
|
||||
|
||||
@staticmethod
|
||||
def add_user(username, corp_ticker):
|
||||
|
Loading…
x
Reference in New Issue
Block a user