OpenSlides/openslides/core/migrations/0005_auto_20170412_1258.py

37 lines
1008 B
Python
Raw Normal View History

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
from openslides.utils.migrations import (
add_permission_to_groups_based_on_existing_permission,
)
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
]