team multicreate
This commit is contained in:
@@ -358,6 +358,7 @@ class TeamUploadOptionsForm(forms.Form):
|
||||
class Meta:
|
||||
fields = ['make_plot','plottype']
|
||||
|
||||
|
||||
# This form is used on the Workout Split page
|
||||
class WorkoutSplitForm(forms.Form):
|
||||
splitchoices = (
|
||||
@@ -1201,6 +1202,19 @@ class WorkoutRaceSelectForm(forms.Form):
|
||||
|
||||
# self.fields['evaluate_after'] =
|
||||
|
||||
# Form to select team by rower
|
||||
class RowerTeamForm(forms.Form):
|
||||
team = forms.ModelChoiceField(
|
||||
queryset=Team.objects.all(),
|
||||
required=False,
|
||||
)
|
||||
|
||||
def __init__(self, user, *args, **kwargs):
|
||||
super(RowerTeamForm, self).__init__(*args, **kwargs)
|
||||
|
||||
self.fields['team'].queryset = Team.objects.filter(manager=user)
|
||||
|
||||
|
||||
class PlannedSessionTeamForm(forms.Form):
|
||||
team = forms.ModelMultipleChoiceField(
|
||||
queryset=Team.objects.all(),
|
||||
|
||||
Reference in New Issue
Block a user