From 3aab73d8622fe3068b5eab32e402bb22a4481a02 Mon Sep 17 00:00:00 2001 From: Jim Fenton Date: Sun, 24 Jul 2022 09:51:57 -0400 Subject: [PATCH] feat(nomcom): Allow nomcom chair to turn volunteer acceptance on and off (#4251) * feat(nomcom): Allow nomcom chair to turn volunteer acceptance on and off Fixes #4105 Also allows chair to set date of first call for volunteers. If this should be read-only and set by the code, let me know. * fix(nomcom): Correct helptext for accepting volunteers --- ietf/nomcom/forms.py | 2 +- ...013_update_accepting_volunteers_helptext.py | 18 ++++++++++++++++++ ietf/nomcom/models.py | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 ietf/nomcom/migrations/0013_update_accepting_volunteers_helptext.py diff --git a/ietf/nomcom/forms.py b/ietf/nomcom/forms.py index 556367150..f0b00a485 100644 --- a/ietf/nomcom/forms.py +++ b/ietf/nomcom/forms.py @@ -120,7 +120,7 @@ class EditNomcomForm(forms.ModelForm): class Meta: model = NomCom fields = ('public_key', 'initial_text', 'show_nominee_pictures', 'show_accepted_nominees', - 'send_questionnaire', 'reminder_interval') + 'send_questionnaire', 'is_accepting_volunteers', 'first_call_for_volunteers', 'reminder_interval') widgets = {'public_key':FileInput, } def clean_public_key(self): diff --git a/ietf/nomcom/migrations/0013_update_accepting_volunteers_helptext.py b/ietf/nomcom/migrations/0013_update_accepting_volunteers_helptext.py new file mode 100644 index 000000000..718e3b49f --- /dev/null +++ b/ietf/nomcom/migrations/0013_update_accepting_volunteers_helptext.py @@ -0,0 +1,18 @@ +# Generated by Django 2.2.28 on 2022-07-23 13:14 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('nomcom', '0012_populate_volunteers'), + ] + + operations = [ + migrations.AlterField( + model_name='nomcom', + name='is_accepting_volunteers', + field=models.BooleanField(default=False, help_text='Is this nomcom currently accepting volunteers?', verbose_name='Accepting volunteers'), + ), + ] diff --git a/ietf/nomcom/models.py b/ietf/nomcom/models.py index 759846e59..868787429 100644 --- a/ietf/nomcom/models.py +++ b/ietf/nomcom/models.py @@ -60,7 +60,7 @@ class NomCom(models.Model): show_accepted_nominees = models.BooleanField(verbose_name='Show accepted nominees', default=True, help_text='Show accepted nominees on the public nomination page') is_accepting_volunteers = models.BooleanField(verbose_name="Accepting volunteers", default=False, - help_text='Is this nomcom is currently accepting volunteers?') + help_text='Is this nomcom currently accepting volunteers?') first_call_for_volunteers = models.DateField(verbose_name='Date of the first call for volunteers', blank=True, null=True) class Meta: