Skip to content
Snippets Groups Projects
Commit 135ed457 authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Add migration for global permission model

parent 80d113cd
No related branches found
No related tags found
1 merge request!207Resolve "Roles and permissions"
# Generated by Django 3.0.5 on 2020-04-19 10:30
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0023_add_permissions_person'),
]
operations = [
migrations.CreateModel(
name='GlobalPermissions',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('extended_data', django.contrib.postgres.fields.jsonb.JSONField(default=dict, editable=False)),
],
options={
'permissions': (('view_system_status', 'Can view system status'), ('link_persons_accounts', 'Can link persons to accounts'), ('manage_data', 'Can manage data'), ('impersonate', 'Can impersonate')),
'managed': False,
},
),
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment