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):
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
('core', '0004_auto_20170215_1624'),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.AlterModelOptions(
|
|
|
|
name='configstore',
|
|
|
|
options={
|
|
|
|
'default_permissions': (),
|
|
|
|
'permissions': (
|
|
|
|
('can_manage_config', 'Can manage configuration'),
|
|
|
|
('can_manage_logos', 'Can manage logos')
|
|
|
|
)
|
|
|
|
},
|
|
|
|
),
|
2018-03-08 16:52:05 +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
|
|
|
]
|