Why was it broken
This commit is contained in:
parent
cb86fd43ac
commit
f9e85dd63e
|
@ -10,6 +10,7 @@ from django.utils import formats
|
||||||
from django.utils.translation import gettext_lazy as _
|
from django.utils.translation import gettext_lazy as _
|
||||||
from PyPDF3 import PdfFileReader
|
from PyPDF3 import PdfFileReader
|
||||||
|
|
||||||
|
from registration.models import VolunteerRegistration
|
||||||
from .models import Note, Participation, Passage, Pool, Solution, Synthesis, Team, Tournament
|
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(
|
self.fields["syntheses_second_phase_limit"].widget = DateTimePickerInput(
|
||||||
format=formats.get_format_lazy(format_type="DATETIME_INPUT_FORMATS", use_l10n=True)[0])
|
format=formats.get_format_lazy(format_type="DATETIME_INPUT_FORMATS", use_l10n=True)[0])
|
||||||
self.fields["organizers"].widget = forms.CheckboxSelectMultiple()
|
self.fields["organizers"].widget = forms.CheckboxSelectMultiple()
|
||||||
|
self.fields["organizers"].queryset = VolunteerRegistration.objects.all()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Tournament
|
model = Tournament
|
||||||
|
|
Loading…
Reference in New Issue