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
e9783083
Commit
e9783083
authored
Dec 20, 2019
by
BaiJiangJie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 修改Adhoc字段become可以为空
parent
7193d7fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
0010_auto_20191217_1758.py
apps/ops/migrations/0010_auto_20191217_1758.py
+1
-1
adhoc.py
apps/ops/models/adhoc.py
+1
-1
No files found.
apps/ops/migrations/0010_auto_20191217_1758.py
View file @
e9783083
...
...
@@ -18,7 +18,7 @@ class Migration(migrations.Migration):
migrations
.
AlterField
(
model_name
=
'adhoc'
,
name
=
'_become'
,
field
=
common
.
fields
.
model
.
EncryptJsonDictCharField
(
blank
=
True
,
default
=
''
,
max_length
=
1024
,
verbose_name
=
'Become'
),
field
=
common
.
fields
.
model
.
EncryptJsonDictCharField
(
blank
=
True
,
null
=
True
,
default
=
''
,
max_length
=
1024
,
verbose_name
=
'Become'
),
),
migrations
.
AlterField
(
model_name
=
'adhoc'
,
...
...
apps/ops/models/adhoc.py
View file @
e9783083
...
...
@@ -185,7 +185,7 @@ class AdHoc(models.Model):
hosts
=
models
.
ManyToManyField
(
'assets.Asset'
,
verbose_name
=
_
(
"Host"
))
run_as_admin
=
models
.
BooleanField
(
default
=
False
,
verbose_name
=
_
(
'Run as admin'
))
run_as
=
models
.
CharField
(
max_length
=
64
,
default
=
''
,
blank
=
True
,
null
=
True
,
verbose_name
=
_
(
'Username'
))
become
=
EncryptJsonDictCharField
(
max_length
=
1024
,
default
=
''
,
blank
=
True
,
verbose_name
=
_
(
"Become"
))
become
=
EncryptJsonDictCharField
(
max_length
=
1024
,
default
=
''
,
null
=
True
,
blank
=
True
,
verbose_name
=
_
(
"Become"
))
created_by
=
models
.
CharField
(
max_length
=
64
,
default
=
''
,
blank
=
True
,
null
=
True
,
verbose_name
=
_
(
'Create by'
))
date_created
=
models
.
DateTimeField
(
auto_now_add
=
True
,
db_index
=
True
)
...
...
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