fixed a small bug
This commit is contained in:
@@ -1045,8 +1045,11 @@ class ConditionEditForm(ModelForm):
|
|||||||
|
|
||||||
def clean(self):
|
def clean(self):
|
||||||
cd = self.cleaned_data
|
cd = self.cleaned_data
|
||||||
if cd['condition'] == 'between' and cd['value2'] is None:
|
try:
|
||||||
raise forms.ValidationError('When using between, you must fill value 1 and value 2')
|
if cd['condition'] == 'between' and cd['value2'] is None:
|
||||||
|
raise forms.ValidationError('When using between, you must fill value 1 and value 2')
|
||||||
|
except KeyError:
|
||||||
|
pass
|
||||||
|
|
||||||
class BaseConditionFormSet(BaseFormSet):
|
class BaseConditionFormSet(BaseFormSet):
|
||||||
def clean(self):
|
def clean(self):
|
||||||
|
|||||||
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
BIN
rowers/tests/testdata/testdata.csv.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user