TP fix maybe, and form to message racers
This commit is contained in:
@@ -2353,6 +2353,23 @@ class PlannedSessionForm(ModelForm):
|
||||
self.fields['course'].queryset = GeoCourse.objects.all().order_by("country","name")
|
||||
self.fields['sessiontype'].choices = regularsessiontypechoices
|
||||
|
||||
class VirtualRaceAthleteForm(ModelForm):
|
||||
class Meta:
|
||||
model = PlannedSession
|
||||
|
||||
fields = ['rower']
|
||||
|
||||
|
||||
widgets = {
|
||||
'rower':forms.CheckboxSelectMultiple,
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(VirtualRaceAthleteForm, self).__init__(*args, **kwargs)
|
||||
self.fields['rower'].queryset = self.instance.rower.all()
|
||||
self.fields['subject']= forms.CharField(max_length=255)
|
||||
self.fields['message'] = forms.CharField(widget=forms.Textarea())
|
||||
|
||||
|
||||
class PlannedSessionTemplateForm(ModelForm):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user