Skip to content

Commit d65987b

Browse files
committed
Improve the questionnaire templates, reminding the nominee that receiving the questionnaire does not imply they have accepted the nomination. Fixes ietf-tools#1807.
- Legacy-Id: 10534
1 parent 5de9343 commit d65987b

1 file changed

Lines changed: 67 additions & 0 deletions

File tree

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import models, migrations
5+
6+
7+
def set_new_template_content(apps, schema_editor):
8+
DBTemplate = apps.get_model('dbtemplate','DBTemplate')
9+
10+
h = DBTemplate.objects.get(path='/nomcom/defaults/position/header_questionnaire.txt')
11+
h.content = """Hi $nominee, this is the questionnaire for the position $position.
12+
Please follow the directions in the questionnaire closely - you may see
13+
that some changes have been made from previous years, so please take note.
14+
15+
We look forward to reading your questionnaire response! If you have any
16+
administrative questions, please send mail to nomcom-chair@ietf.org.
17+
18+
You may have received this questionnaire before accepting the nomination. A
19+
separate message, sent at the time of nomination, provides instructions for
20+
indicating whether you accept or decline. If you have not completed those
21+
steps, please do so as soon as possible, or contact the nomcom chair.
22+
23+
Thank you!
24+
25+
26+
"""
27+
h.save()
28+
29+
h = DBTemplate.objects.get(path='/nomcom/defaults/position/questionnaire.txt')
30+
h.content = """NomCom Chair: Replace this content with the appropriate questionnaire for the position $position.
31+
"""
32+
h.save()
33+
34+
def revert_to_old_template_content(apps, schema_editor):
35+
DBTemplate = apps.get_model('dbtemplate','DBTemplate')
36+
37+
h = DBTemplate.objects.get(path='/nomcom/defaults/position/header_questionnaire.txt')
38+
h.content = """Hi $nominee, this is the questionnaire for the position $position.
39+
Please follow the directions in the questionnaire closely - you may see
40+
that some changes have been made from previous years, so please take note.
41+
42+
We look forward to reading your questionnaire response! If you have any
43+
administrative questions, please send mail to nomcom-chair@ietf.org.
44+
45+
Thank you!
46+
47+
48+
"""
49+
h.save()
50+
51+
h = DBTemplate.objects.get(path='/nomcom/defaults/position/questionnaire.txt')
52+
h.content = """Enter here the questionnaire for the position $position:
53+
54+
Questionnaire
55+
56+
"""
57+
h.save()
58+
59+
class Migration(migrations.Migration):
60+
61+
dependencies = [
62+
('nomcom', '0005_remove_position_incumbent'),
63+
]
64+
65+
operations = [
66+
migrations.RunPython(set_new_template_content,revert_to_old_template_content)
67+
]

0 commit comments

Comments
 (0)