Private
Public Access
1
0

team multicreate

This commit is contained in:
Sander Roosendaal
2019-06-16 17:06:12 +02:00
parent d073d1ffb7
commit 64a5435dd7
8 changed files with 98 additions and 7 deletions

View File

@@ -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(),