Private
Public Access
1
0

moved data field prep for stats to dataprep from views

This commit is contained in:
Sander Roosendaal
2017-02-09 08:43:07 +01:00
parent d279180d5d
commit 0969399e36
3 changed files with 103 additions and 161 deletions

View File

@@ -83,9 +83,14 @@ class PowerZonesField(models.TextField):
# For future Team functionality
class Team(models.Model):
choices = (
('private','private'),
('open','open'),
)
name = models.CharField(max_length=150,unique=True)
notes = models.CharField(blank=True,max_length=200)
manager = models.ForeignKey(User)
private = models.CharField(max_length=30,choices=choices,default='open')
def __unicode__(self):
return self.name