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
577098c7
authored
Jan 09, 2014
by
Oláh István Gergely
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: fix pip coding style
parent
8fd80cf1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
17 deletions
+11
-17
circle/dashboard/forms.py
+11
-14
circle/vm/models/node.py
+0
-3
No files found.
circle/dashboard/forms.py
View file @
577098c7
from
datetime
import
timedelta
from
datetime
import
timedelta
from
django
import
forms
from
vm.models
import
InstanceTemplate
,
Lease
,
InterfaceTemplate
,
Node
from
storage.models
import
Disk
from
firewall.models
import
Vlan
,
Host
from
crispy_forms.helper
import
FormHelper
from
crispy_forms.helper
import
FormHelper
from
crispy_forms.layout
import
(
Layout
,
Div
,
BaseInput
,
from
crispy_forms.layout
import
(
Field
,
HTML
,
Submit
,
Fieldset
)
Layout
,
Div
,
BaseInput
,
Field
,
HTML
,
Submit
,
Fieldset
,
TEMPLATE_PACK
from
crispy_forms.layout
import
TEMPLATE_PACK
)
from
crispy_forms.utils
import
render_field
from
crispy_forms.utils
import
render_field
from
django
import
forms
from
django.forms.widgets
import
TextInput
from
django.template
import
Context
from
django.template
import
Context
from
django.template.loader
import
render_to_string
from
django.template.loader
import
render_to_string
from
django.forms.widgets
import
TextInput
from
django.forms
import
ModelForm
from
crispy_forms.bootstrap
import
FormActions
from
django.forms.models
import
BaseInlineFormSet
from
django.utils.translation
import
ugettext
as
_
from
django.utils.translation
import
ugettext
as
_
from
firewall.models
import
Vlan
,
Host
from
storage.models
import
Disk
from
vm.models
import
InstanceTemplate
,
Lease
,
InterfaceTemplate
,
Node
VLANS
=
Vlan
.
objects
.
all
()
VLANS
=
Vlan
.
objects
.
all
()
DISKS
=
Disk
.
objects
.
exclude
(
type
=
"qcow2-snap"
)
DISKS
=
Disk
.
objects
.
exclude
(
type
=
"qcow2-snap"
)
...
@@ -425,7 +422,7 @@ class NodeForm(forms.ModelForm):
...
@@ -425,7 +422,7 @@ class NodeForm(forms.ModelForm):
),
),
css_class
=
"row"
,
css_class
=
"row"
,
),
),
Div
(
# nested host
Div
(
# nested host
HTML
(
"""{
%
load crispy_forms_tags
%
}
HTML
(
"""{
%
load crispy_forms_tags
%
}
{
%
crispy hostform
%
}
{
%
crispy hostform
%
}
"""
)
"""
)
...
...
circle/vm/models/node.py
View file @
577098c7
...
@@ -147,6 +147,3 @@ class Node(TimeStampedModel):
...
@@ -147,6 +147,3 @@ class Node(TimeStampedModel):
@permalink
@permalink
def
get_absolute_url
(
self
):
def
get_absolute_url
(
self
):
return
(
'dashboard.views.node-detail'
,
None
,
{
'pk'
:
self
.
id
})
return
(
'dashboard.views.node-detail'
,
None
,
{
'pk'
:
self
.
id
})
def
pr
():
print
"irdki"
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