email login, fixing bulk
This commit is contained in:
@@ -1233,12 +1233,12 @@ class ExportChoices(forms.Form):
|
||||
|
||||
class AssignChoices(forms.Form):
|
||||
remove_workout = forms.BooleanField(initial=False, required=False)
|
||||
destination = forms.ModelMultipleChoiceField(label='Rowers', required=False,
|
||||
rowers = forms.ModelMultipleChoiceField(label='Rowers', required=False,
|
||||
queryset=Rower.objects.filter(), widget=forms.CheckboxSelectMultiple())
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(AssignChoices, self).__init__(*args, **kwargs)
|
||||
self.fields['destination'].queryset = Rower.objects.filter()
|
||||
self.fields['rowers'].queryset = Rower.objects.filter()
|
||||
|
||||
class WorkoutMultipleCompareForm(forms.Form):
|
||||
workouts = forms.ModelMultipleChoiceField(
|
||||
|
||||
Reference in New Issue
Block a user