|
| 1 | +# Generated by Django 2.2.14 on 2020-07-28 09:30 |
| 2 | + |
| 3 | +from django.db import migrations |
| 4 | + |
| 5 | +def forward(apps, schema_editor): |
| 6 | + GroupFeatures = apps.get_model('group','GroupFeatures') |
| 7 | + GroupFeatures.objects.create( |
| 8 | + about_page = 'ietf.group.views.group_about', |
| 9 | + acts_like_wg = True, |
| 10 | + admin_roles = ['chair'], |
| 11 | + agenda_type_id = 'ietf', |
| 12 | + create_wiki = True, |
| 13 | + custom_group_roles = True, |
| 14 | + customize_workflow = False, |
| 15 | + default_tab = 'ietf.group.views.group_about', |
| 16 | + default_used_roles = ['chair', 'secr'], |
| 17 | + docman_roles = ['chair', 'delegate', 'secr'], |
| 18 | + groupman_authroles = ['Secretariat', 'IRTF Chair'], |
| 19 | + groupman_roles = ['chair', 'delegate'], |
| 20 | + has_chartering_process = False, |
| 21 | + has_default_jabber = False, |
| 22 | + has_documents = True, |
| 23 | + has_meetings = True, |
| 24 | + has_milestones = False, |
| 25 | + has_nonsession_materials = False, |
| 26 | + has_reviews = False, |
| 27 | + has_session_materials = True, |
| 28 | + is_schedulable = True, |
| 29 | + material_types = ['slides'], |
| 30 | + matman_roles = ['chair', 'delegate', 'secr'], |
| 31 | + req_subm_approval = True, |
| 32 | + role_order = ['chair', 'secr'], |
| 33 | + show_on_agenda = True, |
| 34 | + type_id = 'rag', |
| 35 | + ) |
| 36 | + |
| 37 | + Group = apps.get_model('group','Group') |
| 38 | + Group.objects.filter(type_id='ag',parent__acronym='irtf').update(type_id='rag') |
| 39 | + |
| 40 | +def reverse(apps, schema_editor): |
| 41 | + Group = apps.get_model('group','Group') |
| 42 | + Group.objects.filter(type_id='rag',parent__acronym='irtf').update(type_id='ag') |
| 43 | + |
| 44 | + GroupFeatures = apps.get_model('group','GroupFeatures') |
| 45 | + GroupFeatures.objects.filter(type_id='rag').delete() |
| 46 | + |
| 47 | +class Migration(migrations.Migration): |
| 48 | + |
| 49 | + dependencies = [ |
| 50 | + ('group', '0034_populate_groupextresources'), |
| 51 | + ('name', '0016_add_research_area_groups'), |
| 52 | + ] |
| 53 | + |
| 54 | + operations = [ |
| 55 | + migrations.RunPython(forward, reverse) |
| 56 | + ] |
0 commit comments