Private
Public Access
1
0

warmingup/cd

This commit is contained in:
2025-02-16 19:13:19 +01:00
parent 1c12ebb162
commit 8121b77ba7
5 changed files with 62 additions and 6 deletions

View File

@@ -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(),