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
f524d260
Commit
f524d260
authored
Jan 07, 2015
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 group_add bug
parent
fac7fe32
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
views.py
juser/views.py
+1
-1
group_add.html
templates/juser/group_add.html
+1
-1
No files found.
juser/views.py
View file @
f524d260
...
@@ -24,7 +24,7 @@ def group_add(request):
...
@@ -24,7 +24,7 @@ def group_add(request):
group
=
Group
.
objects
.
filter
(
name
=
group_name
)
group
=
Group
.
objects
.
filter
(
name
=
group_name
)
if
group
:
if
group
:
error
=
u'组
%
s 已存在'
%
group_name
error
=
u'组
%
s 已存在'
%
group_name
assert
AddError
raise
AddError
group
=
Group
(
name
=
group_name
,
comment
=
comment
)
group
=
Group
(
name
=
group_name
,
comment
=
comment
)
group
.
save
()
group
.
save
()
...
...
templates/juser/group_add.html
View file @
f524d260
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"j_comment"
class=
"col-sm-2 control-label"
>
备注
</label>
<label
for=
"j_comment"
class=
"col-sm-2 control-label"
>
备注
</label>
<div
class=
"col-sm-8"
>
<div
class=
"col-sm-8"
>
<input
id=
"j_comment"
name=
"j_comment"
placeholder=
"Comment"
type=
"
password
"
class=
"form-control"
>
<input
id=
"j_comment"
name=
"j_comment"
placeholder=
"Comment"
type=
"
text
"
class=
"form-control"
>
</div>
</div>
</div>
</div>
...
...
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