Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6a9390f9
authored
Oct 20, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix flake8 warnings
parent
eb3f55b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
circle/dashboard/forms.py
+3
-2
circle/dashboard/views/vm.py
+0
-1
No files found.
circle/dashboard/forms.py
View file @
6a9390f9
...
@@ -956,7 +956,7 @@ class VmPortRemoveForm(OperationForm):
...
@@ -956,7 +956,7 @@ class VmPortRemoveForm(OperationForm):
AnyTag
(
AnyTag
(
"div"
,
"div"
,
HTML
(
format_html
(
_
(
"<label>Port:</label> {0}/{1}"
),
HTML
(
format_html
(
_
(
"<label>Port:</label> {0}/{1}"
),
escape
(
self
.
rule
.
dport
),
escape
(
self
.
rule
.
proto
))),
escape
(
self
.
rule
.
dport
),
escape
(
self
.
rule
.
proto
))),
css_class
=
"form-group"
,
css_class
=
"form-group"
,
),
),
Field
(
"rule"
),
Field
(
"rule"
),
...
@@ -989,7 +989,8 @@ class VmPortAddForm(OperationForm):
...
@@ -989,7 +989,8 @@ class VmPortAddForm(OperationForm):
helper
.
layout
=
Layout
(
helper
.
layout
=
Layout
(
AnyTag
(
AnyTag
(
"div"
,
"div"
,
HTML
(
format_html
(
_
(
"<label>Host:</label> {0}"
),
self
.
host
)),
HTML
(
format_html
(
_
(
"<label>Host:</label> {0}"
),
self
.
host
)),
css_class
=
"form-group"
,
css_class
=
"form-group"
,
),
),
Field
(
"host"
),
Field
(
"host"
),
...
...
circle/dashboard/views/vm.py
View file @
6a9390f9
...
@@ -270,7 +270,6 @@ class VmDetailView(GraphMixin, CheckedDetailView):
...
@@ -270,7 +270,6 @@ class VmDetailView(GraphMixin, CheckedDetailView):
return
redirect
(
reverse_lazy
(
"dashboard.views.detail"
,
return
redirect
(
reverse_lazy
(
"dashboard.views.detail"
,
kwargs
=
{
'pk'
:
self
.
object
.
pk
}))
kwargs
=
{
'pk'
:
self
.
object
.
pk
}))
def
__abort_operation
(
self
,
request
):
def
__abort_operation
(
self
,
request
):
self
.
object
=
self
.
get_object
()
self
.
object
=
self
.
get_object
()
...
...
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