Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
359d05b7
authored
Apr 21, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: fix imports (wsgi)
parent
cc6205bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
circle/vm/models/instance.py
+2
-3
No files found.
circle/vm/models/instance.py
View file @
359d05b7
...
@@ -22,7 +22,6 @@ from taggit.managers import TaggableManager
...
@@ -22,7 +22,6 @@ from taggit.managers import TaggableManager
from
acl.models
import
AclBase
from
acl.models
import
AclBase
from
common.operations
import
OperatedMixin
from
common.operations
import
OperatedMixin
from
storage.models
import
Disk
from
..tasks
import
vm_tasks
,
agent_tasks
from
..tasks
import
vm_tasks
,
agent_tasks
from
.activity
import
(
ActivityInProgressError
,
instance_activity
,
from
.activity
import
(
ActivityInProgressError
,
instance_activity
,
InstanceActivity
)
InstanceActivity
)
...
@@ -118,7 +117,7 @@ class InstanceTemplate(AclBase, VirtualMachineDescModel, TimeStampedModel):
...
@@ -118,7 +117,7 @@ class InstanceTemplate(AclBase, VirtualMachineDescModel, TimeStampedModel):
parent
=
ForeignKey
(
'self'
,
null
=
True
,
blank
=
True
,
parent
=
ForeignKey
(
'self'
,
null
=
True
,
blank
=
True
,
verbose_name
=
_
(
'parent template'
),
verbose_name
=
_
(
'parent template'
),
help_text
=
_
(
'Template which this one is derived of.'
))
help_text
=
_
(
'Template which this one is derived of.'
))
disks
=
ManyToManyField
(
Disk
,
verbose_name
=
_
(
'disks'
),
disks
=
ManyToManyField
(
'storage.Disk'
,
verbose_name
=
_
(
'disks'
),
related_name
=
'template_set'
,
related_name
=
'template_set'
,
help_text
=
_
(
'Disks which are to be mounted.'
))
help_text
=
_
(
'Disks which are to be mounted.'
))
owner
=
ForeignKey
(
User
)
owner
=
ForeignKey
(
User
)
...
@@ -210,7 +209,7 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin,
...
@@ -210,7 +209,7 @@ class Instance(AclBase, VirtualMachineDescModel, StatusModel, OperatedMixin,
related_name
=
'instance_set'
,
related_name
=
'instance_set'
,
help_text
=
_
(
"Current hypervisor of this instance."
),
help_text
=
_
(
"Current hypervisor of this instance."
),
verbose_name
=
_
(
'host node'
))
verbose_name
=
_
(
'host node'
))
disks
=
ManyToManyField
(
Disk
,
related_name
=
'instance_set'
,
disks
=
ManyToManyField
(
'storage.Disk'
,
related_name
=
'instance_set'
,
help_text
=
_
(
"Set of mounted disks."
),
help_text
=
_
(
"Set of mounted disks."
),
verbose_name
=
_
(
'disks'
))
verbose_name
=
_
(
'disks'
))
vnc_port
=
IntegerField
(
blank
=
True
,
default
=
None
,
null
=
True
,
vnc_port
=
IntegerField
(
blank
=
True
,
default
=
None
,
null
=
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