changes to make plans work
This commit is contained in:
@@ -1571,9 +1571,11 @@ class TrainingTargetForm(ModelForm):
|
||||
if not teams:
|
||||
self.fields.pop('rowers')
|
||||
else:
|
||||
self.fields['rowers'].queryset = Rower.objects.filter(
|
||||
qs1 = Rower.objects.filter(
|
||||
team__in=teams
|
||||
).distinct().order_by("user__last_name","user__first_name")
|
||||
|
||||
self.fields['rowers'].queryset = qs1
|
||||
|
||||
|
||||
class InstantPlan(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user