more robust race form
This commit is contained in:
@@ -699,6 +699,15 @@ class WorkoutSessionSelectForm(forms.Form):
|
||||
)
|
||||
|
||||
class WorkoutRaceSelectForm(forms.Form):
|
||||
evaluate_after = forms.TimeField(
|
||||
input_formats=['%H:%M:%S.%f',
|
||||
'%H:%M:%S',
|
||||
'%H:%M:%S',
|
||||
'%M:%S.%f',
|
||||
'%M:%S',
|
||||
'%M'],
|
||||
label = 'Only Evaluate After:',
|
||||
required=False)
|
||||
|
||||
def __init__(self, workoutdata, *args, **kwargs):
|
||||
|
||||
@@ -710,7 +719,9 @@ class WorkoutRaceSelectForm(forms.Form):
|
||||
initial=workoutdata['initial'],
|
||||
widget=forms.RadioSelect,
|
||||
)
|
||||
|
||||
|
||||
# self.fields['evaluate_after'] =
|
||||
|
||||
class PlannedSessionTeamForm(forms.Form):
|
||||
team = forms.ModelMultipleChoiceField(
|
||||
queryset=Team.objects.all(),
|
||||
|
||||
Reference in New Issue
Block a user