From f9e85dd63e41f51113f816f81763f35ce5033192 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 4 Feb 2022 15:01:15 +0100 Subject: [PATCH] Why was it broken --- apps/participation/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/participation/forms.py b/apps/participation/forms.py index d4e0809..e0e427c 100644 --- a/apps/participation/forms.py +++ b/apps/participation/forms.py @@ -10,6 +10,7 @@ from django.utils import formats from django.utils.translation import gettext_lazy as _ from PyPDF3 import PdfFileReader +from registration.models import VolunteerRegistration from .models import Note, Participation, Passage, Pool, Solution, Synthesis, Team, Tournament @@ -136,6 +137,7 @@ class TournamentForm(forms.ModelForm): self.fields["syntheses_second_phase_limit"].widget = DateTimePickerInput( format=formats.get_format_lazy(format_type="DATETIME_INPUT_FORMATS", use_l10n=True)[0]) self.fields["organizers"].widget = forms.CheckboxSelectMultiple() + self.fields["organizers"].queryset = VolunteerRegistration.objects.all() class Meta: model = Tournament