Skip to content

Commit e7e1cc2

Browse files
committed
Missing migrations from 18298. Commit ready for merge.
- Legacy-Id: 18299
1 parent 2b10465 commit e7e1cc2

2 files changed

Lines changed: 84 additions & 0 deletions

File tree

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
]
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Generated by Django 2.2.14 on 2020-07-28 09:29
2+
3+
from django.db import migrations
4+
5+
def forward(apps, schema_editor):
6+
GroupTypeName = apps.get_model('name','GroupTypeName')
7+
GroupTypeName.objects.create(
8+
slug = 'rag',
9+
name = 'RAG',
10+
desc = 'Research Area Group',
11+
used = True,
12+
order = 0,
13+
verbose_name='Research Area Group'
14+
)
15+
16+
def reverse(apps, schema_editor):
17+
GroupTypeName = apps.get_model('name','GroupTypeName')
18+
GroupTypeName.objects.filter(slug='rag').delete()
19+
20+
class Migration(migrations.Migration):
21+
22+
dependencies = [
23+
('name', '0015_populate_extres'),
24+
]
25+
26+
operations = [
27+
migrations.RunPython(forward,reverse),
28+
]

0 commit comments

Comments
 (0)