Initial updates (rowerpowerform) and ftp everywhere rrower is called
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user