Allow mapping of states to Teamspeak3 groups.

Addresses #950

Happy now, @colcrunch ?
This commit is contained in:
Adarnof
2018-02-23 01:22:51 -05:00
parent 8dd3a25b52
commit f5abf82b95
6 changed files with 53 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
from django.db import models
from django.contrib.auth.models import User, Group
from allianceauth.authentication.models import State
class Teamspeak3User(models.Model):
@@ -50,3 +51,8 @@ class UserTSgroup(models.Model):
def __str__(self):
return self.user.name
class StateGroup(models.Model):
state = models.ForeignKey(State, on_delete=models.CASCADE)
ts_group = models.ForeignKey(TSgroup, on_delete=models.CASCADE)