2017-03-31 13:48:41 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# Generated by Django 1.10.5 on 2017-04-12 10:58
|
|
|
|
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-03-31 13:48:41 +02:00
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
2019-01-06 16:22:33 +01:00
|
|
|
dependencies = [("core", "0004_auto_20170215_1624")]
|
2017-03-31 13:48:41 +02:00
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.AlterModelOptions(
|
2019-01-06 16:22:33 +01:00
|
|
|
name="configstore",
|
2017-03-31 13:48:41 +02:00
|
|
|
options={
|
2019-01-06 16:22:33 +01:00
|
|
|
"default_permissions": (),
|
|
|
|
"permissions": (
|
|
|
|
("can_manage_config", "Can manage configuration"),
|
|
|
|
("can_manage_logos", "Can manage logos"),
|
|
|
|
),
|
2017-03-31 13:48:41 +02:00
|
|
|
},
|
|
|
|
),
|
2019-01-06 16:22:33 +01:00
|
|
|
migrations.RunPython(
|
|
|
|
add_permission_to_groups_based_on_existing_permission(
|
|
|
|
"can_manage_config",
|
|
|
|
"configstore",
|
|
|
|
"core",
|
|
|
|
"can_manage_logos",
|
|
|
|
"Can manage logos",
|
|
|
|
)
|
|
|
|
),
|
2017-03-31 13:48:41 +02:00
|
|
|
]
|