Private
Public Access
1
0

Initial updates (rowerpowerform) and ftp everywhere rrower is called

This commit is contained in:
sanderroosendaal
2016-11-08 10:31:27 +01:00
parent 02a12585a2
commit 3444995880
8 changed files with 124 additions and 46 deletions

View File

@@ -32,6 +32,8 @@ class Rower(models.Model):
weightcategory = models.CharField(default="hwt",
max_length=30,
choices=weightcategories)
ftp = models.IntegerField(default=226,verbose_name="Functional Threshold Power")
c2token = models.CharField(default='',max_length=200,blank=True,null=True)
tokenexpirydate = models.DateTimeField(blank=True,null=True)
@@ -49,7 +51,7 @@ class Rower(models.Model):
)
rowerplan = models.CharField(default='basic',max_length=30,
choices=plans)
friends = models.ManyToManyField("self")
friends = models.ManyToManyField("self",blank=True)
team = models.ForeignKey(Team,blank=True,null=True)
@@ -158,6 +160,10 @@ class AdvancedWorkoutForm(ModelForm):
model = Workout
fields = ['boattype','weightvalue']
class RowerPowerForm(ModelForm):
class Meta:
model = Rower
fields = ['ftp']
class RowerForm(ModelForm):
class Meta: