2017-08-18 13:13:53 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by Django 1.10.7 on 2017-08-18 10:02
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import migrations
|
|
|
|
|
2018-07-09 23:22:26 +02:00
|
|
|
from openslides.utils.migrations import (
|
|
|
|
add_permission_to_groups_based_on_existing_permission,
|
|
|
|
)
|
2018-03-08 16:52:05 +01:00
|
|
|
|
2017-08-18 13:13:53 +02:00
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2019-01-06 16:22:33 +01:00
|
|
|
dependencies = [("agenda", "0002_item_duration")]
|
2017-08-18 13:13:53 +02:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.AlterModelOptions(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="item",
|
2017-08-18 13:13:53 +02:00
|
|
|
options={
|
2019-01-06 16:22:33 +01:00
|
|
|
"default_permissions": (),
|
|
|
|
"permissions": (
|
|
|
|
("can_see", "Can see agenda"),
|
|
|
|
("can_manage", "Can manage agenda"),
|
|
|
|
("can_manage_list_of_speakers", "Can manage list of speakers"),
|
|
|
|
(
|
|
|
|
"can_see_hidden_items",
|
|
|
|
"Can see hidden items and time scheduling of agenda",
|
|
|
|
),
|
|
|
|
),
|
2017-08-18 13:13:53 +02:00
|
|
|
},
|
|
|
|
),
|
2019-01-06 16:22:33 +01:00
|
|
|
migrations.RunPython(
|
|
|
|
add_permission_to_groups_based_on_existing_permission(
|
|
|
|
"can_manage",
|
|
|
|
"item",
|
|
|
|
"agenda",
|
|
|
|
"can_manage_list_of_speakers",
|
|
|
|
"Can manage list of speakers",
|
|
|
|
)
|
|
|
|
),
|
2017-08-18 13:13:53 +02:00
|
|
|
]
|