moved data field prep for stats to dataprep from views
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user