Private
Public Access
1
0

changes to make plans work

This commit is contained in:
Sander Roosendaal
2021-11-09 15:52:30 +01:00
parent a9018c6e74
commit ec179397f6
4 changed files with 19 additions and 6 deletions

View File

@@ -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):