|
| 1 | +# Copyright The IETF Trust 2023, All Rights Reserved |
| 2 | + |
| 3 | +from django.db import migrations |
| 4 | + |
| 5 | +def markdown_names(apps, schema_editor): |
| 6 | + ImportantDateName = apps.get_model("name", "ImportantDateName") |
| 7 | + changes = [ |
| 8 | + ('bofproposals', "Preliminary BOF proposals requested. To request a __BoF__ session use the [IETF BoF Request Tool](/doc/bof-requests)."), |
| 9 | + ('openreg', "IETF Online Registration Opens [Register Here](https://www.ietf.org/how/meetings/register/)."), |
| 10 | + ('opensched', "Working Group and BOF scheduling begins. To request a Working Group session, use the [IETF Meeting Session Request Tool](/secr/sreq/). If you are working on a BOF request, it is highly recommended to tell the IESG now by sending an [email to iesg@ietf.org](mailtp:iesg@ietf.org) to get advance help with the request."), |
| 11 | + ('cutoffwgreq', "Cut-off date for requests to schedule Working Group Meetings at UTC 23:59. To request a __Working Group__ session, use the [IETF Meeting Session Request Tool](/secr/sreq/)."), |
| 12 | + ('idcutoff', "Internet-Draft submission cut-off (for all Internet-Drafts, including -00) by UTC 23:59. Upload using the [I-D Submission Tool](/submit/)."), |
| 13 | + ('cutoffwgreq', "Cut-off date for requests to schedule Working Group Meetings at UTC 23:59. To request a __Working Group__ session, use the [IETF Meeting Session Request Tool](/secr/sreq/)."), |
| 14 | + ('bofprelimcutoff', "Cut-off date for BOF proposal requests. To request a __BoF__ session use the [IETF BoF Request Tool](/doc/bof-requests)."), |
| 15 | + ('cutoffbofreq', "Cut-off date for BOF proposal requests to Area Directors at UTC 23:59. To request a __BoF__ session use the [IETF BoF Request Tool](/doc/bof-requests)."), |
| 16 | + ] |
| 17 | + for slug, newDescription in changes: |
| 18 | + datename = ImportantDateName.objects.get(pk=slug) # If the slug does not exist, then Django will throw an exception :-) |
| 19 | + datename.desc = newDescription |
| 20 | + datename.save() |
| 21 | + |
| 22 | +class Migration(migrations.Migration): |
| 23 | + dependencies = [ |
| 24 | + ("name", "0010_subseries"), |
| 25 | + ] |
| 26 | + |
| 27 | + operations = [ |
| 28 | + migrations.RunPython(markdown_names), |
| 29 | + ] |
0 commit comments