added manager permissions
This commit is contained in:
parent
687e3ace51
commit
0dbcbea100
1 changed files with 7 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue