added manager permissions

This commit is contained in:
James Tauber 2012-08-07 23:28:15 -04:00
parent 687e3ace51
commit 0dbcbea100

View file

@ -20,7 +20,13 @@ class Team(models.Model):
name = models.CharField(max_length=100)
description = models.TextField(blank=True)
access = models.CharField(max_length=20, choices=TEAM_ACCESS_CHOICES)
permissions = models.ManyToManyField(Permission, blank=True)
# member permissions
permissions = models.ManyToManyField(Permission, blank=True, related_name="member_teams")
# manager permissions
manager_permissions = models.ManyToManyField(Permission, blank=True, related_name="manager_teams")
created = models.DateTimeField(default=datetime.datetime.now, editable=False)
def __unicode__(self):