Brett Costabile 9d884c0a2c More format corrections
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.
2015-05-24 15:32:43 -04:00

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)