Private
Public Access
1
0

improved race filtering

This commit is contained in:
Sander Roosendaal
2018-12-17 09:46:23 +01:00
parent cf661f4ae5
commit 4d89711b58
5 changed files with 9 additions and 24 deletions

View File

@@ -880,8 +880,8 @@ class WorkoutSessionSelectForm(forms.Form):
class RaceResultFilterForm(forms.Form):
boatclasses = (type for type in mytypes.workouttypes if type[0] in mytypes.otwtypes)
boatclassinitial = [t for t in mytypes.otwtypes]
boatclasses = (type for type in mytypes.workouttypes if type[0] in mytypes.rowtypes)
boatclassinitial = [t for t in mytypes.rowtypes]
sexchoices = (
('female','Female'),
('male','Male'),
@@ -904,7 +904,7 @@ class RaceResultFilterForm(forms.Form):
boatclass = forms.MultipleChoiceField(
choices=boatclasses,
initial=boatclassinitial,
label='Boat Class',
label='Boat/Erg Class',
widget=forms.CheckboxSelectMultiple())
boattype = forms.MultipleChoiceField(