Skip to content

Commit 3aab73d

Browse files
authored
feat(nomcom): Allow nomcom chair to turn volunteer acceptance on and off (ietf-tools#4251)
* feat(nomcom): Allow nomcom chair to turn volunteer acceptance on and off Fixes ietf-tools#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
1 parent 3a1d8b3 commit 3aab73d

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

ietf/nomcom/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def __init__(self, *args, **kwargs):
120120
class Meta:
121121
model = NomCom
122122
fields = ('public_key', 'initial_text', 'show_nominee_pictures', 'show_accepted_nominees',
123-
'send_questionnaire', 'reminder_interval')
123+
'send_questionnaire', 'is_accepting_volunteers', 'first_call_for_volunteers', 'reminder_interval')
124124
widgets = {'public_key':FileInput, }
125125

126126
def clean_public_key(self):
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 2.2.28 on 2022-07-23 13:14
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('nomcom', '0012_populate_volunteers'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='nomcom',
15+
name='is_accepting_volunteers',
16+
field=models.BooleanField(default=False, help_text='Is this nomcom currently accepting volunteers?', verbose_name='Accepting volunteers'),
17+
),
18+
]

ietf/nomcom/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class NomCom(models.Model):
6060
show_accepted_nominees = models.BooleanField(verbose_name='Show accepted nominees', default=True,
6161
help_text='Show accepted nominees on the public nomination page')
6262
is_accepting_volunteers = models.BooleanField(verbose_name="Accepting volunteers", default=False,
63-
help_text='Is this nomcom is currently accepting volunteers?')
63+
help_text='Is this nomcom currently accepting volunteers?')
6464
first_call_for_volunteers = models.DateField(verbose_name='Date of the first call for volunteers', blank=True, null=True)
6565

6666
class Meta:

0 commit comments

Comments
 (0)