Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
860300db
authored
Oct 09, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: remove unused form helper
parent
f750837b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
8 deletions
+2
-8
circle/dashboard/forms.py
+0
-6
circle/dashboard/templates/dashboard/_vm-migrate.html
+1
-1
circle/dashboard/views/vm.py
+1
-1
No files found.
circle/dashboard/forms.py
View file @
860300db
...
@@ -765,12 +765,6 @@ class VmMigrateForm(forms.Form):
...
@@ -765,12 +765,6 @@ class VmMigrateForm(forms.Form):
queryset
=
choices
,
initial
=
default
,
required
=
False
,
queryset
=
choices
,
initial
=
default
,
required
=
False
,
widget
=
forms
.
RadioSelect
(),
label
=
_
(
"Node"
)))
widget
=
forms
.
RadioSelect
(),
label
=
_
(
"Node"
)))
@property
def
helper
(
self
):
helper
=
FormHelper
(
self
)
helper
.
form_tag
=
False
return
helper
class
VmStateChangeForm
(
forms
.
Form
):
class
VmStateChangeForm
(
forms
.
Form
):
...
...
circle/dashboard/templates/dashboard/_vm-migrate.html
View file @
860300db
...
@@ -14,7 +14,7 @@ Choose a compute node to migrate {{obj}} to.
...
@@ -14,7 +14,7 @@ Choose a compute node to migrate {{obj}} to.
{% block formfields %}
{% block formfields %}
<ul
id=
"vm-migrate-node-list"
class=
"list-unstyled"
>
<ul
id=
"vm-migrate-node-list"
class=
"list-unstyled"
>
{% with current=object.node.pk recommended=form.fields.to_node.initial %}
{% with current=object.node.pk recommended=form.fields.to_node.initial
.pk
%}
{% for n in form.fields.to_node.queryset.all %}
{% for n in form.fields.to_node.queryset.all %}
<li
class=
"panel panel-default"
><div
class=
"panel-body"
>
<li
class=
"panel panel-default"
><div
class=
"panel-body"
>
<label
for=
"migrate-to-{{n.pk}}"
>
<label
for=
"migrate-to-{{n.pk}}"
>
...
...
circle/dashboard/views/vm.py
View file @
860300db
...
@@ -437,7 +437,7 @@ class VmMigrateView(FormOperationMixin, VmOperationView):
...
@@ -437,7 +437,7 @@ class VmMigrateView(FormOperationMixin, VmOperationView):
inst
=
self
.
get_object
()
inst
=
self
.
get_object
()
try
:
try
:
if
isinstance
(
inst
,
Instance
):
if
isinstance
(
inst
,
Instance
):
default
=
inst
.
select_node
()
.
pk
default
=
inst
.
select_node
()
except
SchedulerError
:
except
SchedulerError
:
logger
.
exception
(
"scheduler error:"
)
logger
.
exception
(
"scheduler error:"
)
...
...
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