bug fixes
This commit is contained in:
@@ -4193,6 +4193,13 @@ class WorkoutForm(ModelForm):
|
||||
else:
|
||||
del self.fields['plannedsession']
|
||||
|
||||
def clean(self):
|
||||
if any(self.errors):
|
||||
return
|
||||
cd = self.cleaned_data
|
||||
if cd['duration'] is None or cd['duration'] == '':
|
||||
raise forms.ValidationError('Duration cannot be empty')
|
||||
|
||||
# Used for the rowing physics calculations
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user