mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-11 21:40:17 +02:00
I forgot to adjust the class names in admin.py after changing the first characters to caps. There was also a little shuffling of code to make the definitions work.
13 lines
389 B
Python
13 lines
389 B
Python
from django.db import models
|
|
|
|
class TSgroup(models.Model):
|
|
group_id = models.IntegerField(primary_key=True)
|
|
name = models.CharField(max_length=30)
|
|
|
|
class AuthTS(models.Model):
|
|
ts_group_id = models.ForeignKey(TSgroup)
|
|
auth_group_id = models.ForeignKey('auth.Group')
|
|
|
|
class UserTSgroup(models.Model):
|
|
user_id = models.ForeignKey('auth.User')
|
|
group_id = models.ManyToManyField(TSgroup) |