Private
Public Access
1
0

favorite charts by workout source

This commit is contained in:
Sander Roosendaal
2018-10-26 09:17:19 +02:00
parent 4e0db6e2e0
commit d85a1a7045
6 changed files with 47 additions and 27 deletions

View File

@@ -751,11 +751,14 @@ parchoicesx = list(sorted(favchartlabelsx.items(), key = lambda x:x[1]))
# Saving a chart as a favorite chart
class FavoriteChart(models.Model):
workouttypechoices = (
workouttypechoices = [
('ote','Erg/SkiErg'),
('otw','On The Water'),
('both','both')
)
('all','All')
]
for workoutsource in mytypes.workoutsources:
workouttypechoices.append(workoutsource)
plottypes = (
('line','Line Chart'),
@@ -771,6 +774,7 @@ class FavoriteChart(models.Model):
workouttype = models.CharField(max_length=50,choices=workouttypechoices,
default='both',
verbose_name='Workout Type')
reststrokes = models.BooleanField(default=True,verbose_name="Incl. Rest")
notes = models.CharField(max_length=300,verbose_name='Chart Notes',
default='Flex Chart Notes',blank=True)