warmingup/cd
This commit is contained in:
@@ -3718,6 +3718,13 @@ rpechoices = (
|
||||
(10, '10 Max Effort (You can barely remember your name, you would rather rip out your toenails than go through this)')
|
||||
)
|
||||
|
||||
subcategories = (
|
||||
(None, "None"),
|
||||
("Race", "Race"),
|
||||
("Commute", "Commute"),
|
||||
("Warming Up", "Warming Up"),
|
||||
("Cooling Down", "Cooling Down")
|
||||
)
|
||||
|
||||
class Workout(models.Model):
|
||||
workouttypes = mytypes.workouttypes
|
||||
@@ -3770,6 +3777,8 @@ class Workout(models.Model):
|
||||
verbose_name='Rate of Perceived Exertion')
|
||||
|
||||
is_commute = models.BooleanField(default=False)
|
||||
is_race = models.BooleanField(default=False)
|
||||
sub_type = models.CharField(default=None, null=True, blank=True, choices=subcategories, max_length=250)
|
||||
|
||||
weightcategory = models.CharField(
|
||||
default="hwt",
|
||||
@@ -4624,6 +4633,7 @@ class WorkoutForm(ModelForm):
|
||||
'duration',
|
||||
'distance',
|
||||
'workouttype',
|
||||
'sub_type',
|
||||
'boattype',
|
||||
'boatname',
|
||||
'seatnumber',
|
||||
@@ -4636,6 +4646,7 @@ class WorkoutForm(ModelForm):
|
||||
'rankingpiece',
|
||||
'duplicate',
|
||||
'is_commute',
|
||||
'is_race',
|
||||
'plannedsession']
|
||||
widgets = {
|
||||
'date': AdminDateWidget(),
|
||||
|
||||
Reference in New Issue
Block a user