favorite charts by workout source
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user