|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +from __future__ import unicode_literals |
| 3 | + |
| 4 | +from django.db import migrations |
| 5 | + |
| 6 | +def forward(apps, schema_editor): |
| 7 | + DBTemplate = apps.get_model('dbtemplate','DBTemplate') |
| 8 | + Group = apps.get_model('group','Group') |
| 9 | + |
| 10 | + DBTemplate.objects.create( |
| 11 | + path='/group/genart/review/content_templates/lc.txt', |
| 12 | + title='Template for genart last call reviews', |
| 13 | + type_id='plain', |
| 14 | + group=Group.objects.get(acronym='genart'), |
| 15 | + content="""I am the assigned Gen-ART reviewer for this draft. The General Area |
| 16 | +Review Team (Gen-ART) reviews all IETF documents being processed |
| 17 | +by the IESG for the IETF Chair. Please treat these comments just |
| 18 | +like any other last call comments. |
| 19 | +
|
| 20 | +For more information, please see the FAQ at |
| 21 | +
|
| 22 | +<https://trac.ietf.org/trac/gen/wiki/GenArtfaq>. |
| 23 | +
|
| 24 | +Document: |
| 25 | +Reviewer: |
| 26 | +Review Date: |
| 27 | +IETF LC End Date: |
| 28 | +IESG Telechat date: (if known) |
| 29 | +
|
| 30 | +Summary: |
| 31 | +
|
| 32 | +Major issues: |
| 33 | +
|
| 34 | +Minor issues: |
| 35 | +
|
| 36 | +Nits/editorial comments: |
| 37 | +""" |
| 38 | + ) |
| 39 | + DBTemplate.objects.create( |
| 40 | + path='/group/genart/review/content_templates/telechat.txt', |
| 41 | + title='Template for genart telechat reviews', |
| 42 | + type_id='plain', |
| 43 | + group=Group.objects.get(acronym='genart'), |
| 44 | + content="""I am the assigned Gen-ART reviewer for this draft. The General Area |
| 45 | +Review Team (Gen-ART) reviews all IETF documents being processed |
| 46 | +by the IESG for the IETF Chair. Please wait for direction from your |
| 47 | +document shepherd or AD before posting a new version of the draft. |
| 48 | +
|
| 49 | +For more information, please see the FAQ at |
| 50 | +
|
| 51 | +<https://trac.ietf.org/trac/gen/wiki/GenArtfaq>. |
| 52 | +
|
| 53 | +Document: |
| 54 | +Reviewer: |
| 55 | +Review Date: |
| 56 | +IETF LC End Date: |
| 57 | +IESG Telechat date: (if known) |
| 58 | +
|
| 59 | +Summary: |
| 60 | +
|
| 61 | +Major issues: |
| 62 | +
|
| 63 | +Minor issues: |
| 64 | +
|
| 65 | +Nits/editorial comments: |
| 66 | +""" |
| 67 | + ) |
| 68 | + |
| 69 | +def reverse(apps, schema_editor): |
| 70 | + DBTemplate = apps.get_model('dbtemplate','DBTemplate') |
| 71 | + DBTemplate.objects.filter(path__in=['/group/genart/review/content_templates/lc.txt','/group/genart/review/content_templates/telechat.txt']).delete() |
| 72 | + |
| 73 | + |
| 74 | +class Migration(migrations.Migration): |
| 75 | + |
| 76 | + dependencies = [ |
| 77 | + ('dbtemplate', '0003_review_summary_email'), |
| 78 | + ] |
| 79 | + |
| 80 | + operations = [ |
| 81 | + migrations.RunPython(forward,reverse) |
| 82 | + ] |
0 commit comments