Private
Public Access
1
0

now working with new otw power

This commit is contained in:
Sander Roosendaal
2020-09-19 17:37:17 +02:00
parent 0099fc678a
commit b98eed6eeb
5 changed files with 95 additions and 9 deletions

View File

@@ -1147,6 +1147,7 @@ class Alert(models.Model):
verbose_name='Boat Type',default='1x')
def __str__(self):
metricdict = {key:value for (key,value) in parchoicesy1}
stri = u'Alert {name} on {metric} for {workouttype} - running on {first_name} every {period} days'.format(
@@ -2778,6 +2779,7 @@ class Workout(models.Model):
workoutsources = mytypes.workoutsources
privacychoices = mytypes.privacychoices
adaptivetypes = mytypes.adaptivetypes
boatbrands = mytypes.boatbrands
user = models.ForeignKey(Rower,on_delete=models.CASCADE)
team = models.ManyToManyField(Team,blank=True)
@@ -2792,6 +2794,8 @@ class Workout(models.Model):
boattype = models.CharField(choices=boattypes,max_length=50,
default='1x',
verbose_name = 'Boat Type')
boatbrand = models.CharField(choices=boatbrands,max_length=50,
default='',verbose_name = 'Boat Brand')
adaptiveclass = models.CharField(choices=adaptivetypes,max_length=50,
default='None',
verbose_name='Adaptive Classification')
@@ -3450,7 +3454,7 @@ class AdvancedWorkoutForm(ModelForm):
class Meta:
model = Workout
fields = ['boattype','weightvalue']
fields = ['boattype','weightvalue','boatbrand']
class RowerExportForm(ModelForm):
class Meta: