mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-12 14:00:17 +02:00
And models
Messed up last commit. This one actually includes models.py
This commit is contained in:
parent
2d85fb84ed
commit
e1c3750f3a
@ -1 +1,13 @@
|
|||||||
# Create your models here.
|
from django.db import models
|
||||||
|
|
||||||
|
class authTS(models.Model):
|
||||||
|
ts_group_id = models.ForeignKey(TSgroup)
|
||||||
|
auth_group_id = models.ForeignKey(Group)
|
||||||
|
|
||||||
|
class TSgroup(models.Model):
|
||||||
|
group_id = models.int(primary_key=True)
|
||||||
|
name = models.CharField(max_length=30)
|
||||||
|
|
||||||
|
class userTSgroup(model.Model):
|
||||||
|
user_id = models.ForeignKey(User)
|
||||||
|
group_id = model.ManyToManyField(TSgroup)
|
Loading…
x
Reference in New Issue
Block a user