Private
Public Access
1
0

first form done (workout form)

This commit is contained in:
2024-01-20 16:46:55 +01:00
parent fcb296c002
commit d78f60b5b6
4 changed files with 94 additions and 32 deletions

View File

@@ -3443,6 +3443,7 @@ class PlannedSessionFormSmall(ModelForm):
boattypes = mytypes.boattypes
ergtypes = mytypes.ergtypes
# Workout
rpechoices = (
@@ -3481,9 +3482,9 @@ class Workout(models.Model):
verbose_name='Exercise/Boat Class')
workoutsource = models.CharField(max_length=100,
default='unknown')
boattype = models.CharField(choices=boattypes, max_length=50,
boattype = models.CharField(choices=boattypes+ergtypes, max_length=50,
default='1x',
verbose_name='Boat Type')
verbose_name='Boat/Rower Type')
boatbrand = models.CharField(choices=boatbrands, max_length=50,
default='', verbose_name='Boat Brand')
adaptiveclass = models.CharField(choices=adaptivetypes, max_length=50,