Commit 354c3c56 authored by BaiJiangJie's avatar BaiJiangJie

[Update] 修改perms迁移文件之间的依赖关系,添加迁移文件

parent a2376d3a
......@@ -7,7 +7,7 @@ class Migration(migrations.Migration):
dependencies = [
('applications', '0001_initial'),
('perms', '0008_remoteapppermission_system_users'),
('perms', '0009_remoteapppermission_system_users'),
]
operations = [
......
# Generated by Django 2.1.7 on 2019-09-16 02:57
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('orgs', '0002_auto_20180903_1132'),
]
operations = [
migrations.AddField(
model_name='organization',
name='auditors',
field=models.ManyToManyField(blank=True, related_name='related_audit_orgs', to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='organization',
name='admins',
field=models.ManyToManyField(blank=True, related_name='related_admin_orgs', to=settings.AUTH_USER_MODEL),
),
migrations.AlterField(
model_name='organization',
name='users',
field=models.ManyToManyField(blank=True, related_name='related_user_orgs', to=settings.AUTH_USER_MODEL),
),
]
# Generated by Django 2.1.7 on 2019-09-09 09:09
# Generated by Django 2.1.7 on 2019-09-16 02:57
from django.db import migrations, models
from assets.models import SystemUser
def migrate_system_user_from_remote_app_to_remote_app_perms(apps, schema_editor):
......@@ -16,8 +15,8 @@ def migrate_system_user_from_remote_app_to_remote_app_perms(apps, schema_editor)
class Migration(migrations.Migration):
dependencies = [
('assets', '0037_auto_20190724_2002'),
('perms', '0007_remove_assetpermission_actions'),
('assets', '0038_auto_20190911_1634'),
('perms', '0008_auto_20190911_1907'),
]
operations = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment