Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
354c3c56
Commit
354c3c56
authored
Sep 16, 2019
by
BaiJiangJie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改perms迁移文件之间的依赖关系,添加迁移文件
parent
a2376d3a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
5 deletions
+34
-5
0002_remove_remoteapp_system_user.py
...lications/migrations/0002_remove_remoteapp_system_user.py
+1
-1
0003_auto_20190916_1057.py
apps/orgs/migrations/0003_auto_20190916_1057.py
+30
-0
0009_remoteapppermission_system_users.py
...perms/migrations/0009_remoteapppermission_system_users.py
+3
-4
No files found.
apps/applications/migrations/0002_remove_remoteapp_system_user.py
View file @
354c3c56
...
...
@@ -7,7 +7,7 @@ class Migration(migrations.Migration):
dependencies
=
[
(
'applications'
,
'0001_initial'
),
(
'perms'
,
'000
8
_remoteapppermission_system_users'
),
(
'perms'
,
'000
9
_remoteapppermission_system_users'
),
]
operations
=
[
...
...
apps/orgs/migrations/0003_auto_20190916_1057.py
0 → 100644
View file @
354c3c56
# 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
),
),
]
apps/perms/migrations/000
8
_remoteapppermission_system_users.py
→
apps/perms/migrations/000
9
_remoteapppermission_system_users.py
View file @
354c3c56
# 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'
,
'003
7_auto_20190724_2002
'
),
(
'perms'
,
'000
7_remove_assetpermission_actions
'
),
(
'assets'
,
'003
8_auto_20190911_1634
'
),
(
'perms'
,
'000
8_auto_20190911_1907
'
),
]
operations
=
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment