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
583fd410
Commit
583fd410
authored
Jun 21, 2019
by
BaiJiangJie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 添加迁移文件,修改设置资产可连接性时管理用户为None的bug
parent
bb1a9412
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
0 deletions
+55
-0
0031_auto_20190621_1332.py
apps/assets/migrations/0031_auto_20190621_1332.py
+53
-0
asset.py
apps/assets/models/asset.py
+2
-0
No files found.
apps/assets/migrations/0031_auto_20190621_1332.py
0 → 100644
View file @
583fd410
# Generated by Django 2.1.7 on 2019-06-21 05:32
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'assets'
,
'0030_auto_20190619_1135'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'adminuser'
,
name
=
'date_created'
,
field
=
models
.
DateTimeField
(
auto_now_add
=
True
,
verbose_name
=
'Date created'
),
),
migrations
.
AlterField
(
model_name
=
'adminuser'
,
name
=
'date_updated'
,
field
=
models
.
DateTimeField
(
auto_now
=
True
,
verbose_name
=
'Date updated'
),
),
migrations
.
AlterField
(
model_name
=
'authbook'
,
name
=
'date_created'
,
field
=
models
.
DateTimeField
(
auto_now_add
=
True
,
verbose_name
=
'Date created'
),
),
migrations
.
AlterField
(
model_name
=
'authbook'
,
name
=
'date_updated'
,
field
=
models
.
DateTimeField
(
auto_now
=
True
,
verbose_name
=
'Date updated'
),
),
migrations
.
AlterField
(
model_name
=
'gateway'
,
name
=
'date_created'
,
field
=
models
.
DateTimeField
(
auto_now_add
=
True
,
verbose_name
=
'Date created'
),
),
migrations
.
AlterField
(
model_name
=
'gateway'
,
name
=
'date_updated'
,
field
=
models
.
DateTimeField
(
auto_now
=
True
,
verbose_name
=
'Date updated'
),
),
migrations
.
AlterField
(
model_name
=
'systemuser'
,
name
=
'date_created'
,
field
=
models
.
DateTimeField
(
auto_now_add
=
True
,
verbose_name
=
'Date created'
),
),
migrations
.
AlterField
(
model_name
=
'systemuser'
,
name
=
'date_updated'
,
field
=
models
.
DateTimeField
(
auto_now
=
True
,
verbose_name
=
'Date updated'
),
),
]
apps/assets/models/asset.py
View file @
583fd410
...
...
@@ -256,6 +256,8 @@ class Asset(OrgModelMixin):
@connectivity.setter
def
connectivity
(
self
,
value
):
if
not
self
.
admin_user
:
return
self
.
admin_user
.
set_connectivity_of
(
self
,
value
)
def
get_auth_info
(
self
):
...
...
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