Private
Public Access
1
0

team expiry date added to Rower model

This commit is contained in:
Sander Roosendaal
2017-02-09 14:07:44 +01:00
parent 30f420c1a5
commit f459cea2bd
2 changed files with 20 additions and 2 deletions

View File

@@ -175,6 +175,7 @@ class Rower(models.Model):
choices=plans)
planexpires = models.DateField(default=timezone.now)
teamplanexpires = models.DateField(default=timezone.now)
clubsize = models.IntegerField(default=0)
# Friends/Team
@@ -324,7 +325,7 @@ class Workout(models.Model):
)
user = models.ForeignKey(Rower)
team = models.ManyToManyField(Team,blank=True,null=True)
team = models.ManyToManyField(Team,blank=True)
name = models.CharField(max_length=150)
date = models.DateField()
workouttype = models.CharField(choices=workouttypes,max_length=50)