adding resample function
This commit is contained in:
@@ -58,6 +58,14 @@ class FlexibleDecimalField(forms.DecimalField):
|
||||
value = value.replace('.', '').replace(',', '.')
|
||||
return super(FlexibleDecimalField, self).to_python(value)
|
||||
|
||||
class ResampleForm(forms.Form):
|
||||
resamplechoices = (
|
||||
('overwrite','Overwrite Workout'),
|
||||
('copy','Create a Duplicate Workout')
|
||||
)
|
||||
|
||||
resamplechoice = forms.ChoiceField(initial='copy',choices=resamplechoices,label='Copy behavior')
|
||||
|
||||
class TrainingZonesForm(forms.Form):
|
||||
zoneschoices = (
|
||||
('power','Power Zones'),
|
||||
|
||||
Reference in New Issue
Block a user