Manual post naming and string tweaks

- Legacy-Id: 11918
This commit is contained in:
Henrik Levkowetz 2016-09-01 12:04:43 +00:00
parent 7a8c067d83
commit be6065e6a5
4 changed files with 8 additions and 8 deletions

View file

@ -10,15 +10,15 @@ def forward(apps, schema_editor):
rc = Recipient.objects.create rc = Recipient.objects.create
rc(slug='manualpost_message', rc(slug='submission_manualpost_handling',
desc='The IETF manual post processing system', desc='IETF manual post handling',
template='<ietf-manualpost@ietf.org>') template='<ietf-manualpost@ietf.org>')
def reverse(apps, schema_editor): def reverse(apps, schema_editor):
Recipient=apps.get_model('mailtrigger','Recipient') Recipient=apps.get_model('mailtrigger','Recipient')
Recipient.objects.filter(slug='manualpost_message').delete() Recipient.objects.filter(slug='submission_manualpost_handling').delete()
class Migration(migrations.Migration): class Migration(migrations.Migration):

View file

@ -81,7 +81,7 @@ def gather_relevant_expansions(**kwargs):
return sorted(rule_list) return sorted(rule_list)
def get_base_submission_message_address(): def get_base_submission_message_address():
return Recipient.objects.get(slug='manualpost_message').gather()[0] return Recipient.objects.get(slug='submission_manualpost_handling').gather()[0]
def get_base_ipr_request_address(): def get_base_ipr_request_address():
return Recipient.objects.get(slug='ipr_requests').gather()[0] return Recipient.objects.get(slug='ipr_requests').gather()[0]

View file

@ -880,7 +880,7 @@
"posted" "posted"
], ],
"used": true, "used": true,
"name": "Manual Post Awaiting Draft", "name": "Manual Post Waiting for Draft",
"desc": "" "desc": ""
}, },
"model": "name.draftsubmissionstatename", "model": "name.draftsubmissionstatename",
@ -4920,10 +4920,10 @@
{ {
"fields": { "fields": {
"template": "<ietf-manualpost@ietf.org>", "template": "<ietf-manualpost@ietf.org>",
"desc": "The IETF manual post processing system" "desc": "IETF manual post handling"
}, },
"model": "mailtrigger.recipient", "model": "mailtrigger.recipient",
"pk": "manualpost_message" "pk": "submission_manualpost_handling"
}, },
{ {
"fields": { "fields": {

View file

@ -10,7 +10,7 @@ class Migration(migrations.Migration):
# version than this migration expects. We use the historical version. # version than this migration expects. We use the historical version.
DraftSubmissionStateName = apps.get_model("name", "DraftSubmissionStateName") DraftSubmissionStateName = apps.get_model("name", "DraftSubmissionStateName")
DraftSubmissionStateName.objects.create(slug="waiting-for-draft", DraftSubmissionStateName.objects.create(slug="waiting-for-draft",
name="Manual Post Awaiting Draft Upload", name="Manual Post Waiting for Draft",
desc="", desc="",
used=True, used=True,
order=8) order=8)