Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
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
881f4ad3
authored
Oct 08, 2013
by
Dudás Ádám
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: change quoting style of help text values
parent
836c7e0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
circle/vm/models.py
+14
-14
No files found.
circle/vm/models.py
View file @
881f4ad3
...
@@ -283,40 +283,40 @@ class Instance(BaseResourceConfigModel, TimeStampedModel):
...
@@ -283,40 +283,40 @@ class Instance(BaseResourceConfigModel, TimeStampedModel):
(
'CRASHED'
,
_
(
'crashed'
)),
(
'CRASHED'
,
_
(
'crashed'
)),
(
'PMSUSPENDED'
,
_
(
'pmsuspended'
))]
# libvirt domain states
(
'PMSUSPENDED'
,
_
(
'pmsuspended'
))]
# libvirt domain states
name
=
CharField
(
blank
=
True
,
max_length
=
100
,
verbose_name
=
_
(
'name'
),
name
=
CharField
(
blank
=
True
,
max_length
=
100
,
verbose_name
=
_
(
'name'
),
help_text
=
_
(
'Human readable name of instance.'
))
help_text
=
_
(
"Human readable name of instance."
))
description
=
TextField
(
blank
=
True
,
verbose_name
=
_
(
'description'
))
description
=
TextField
(
blank
=
True
,
verbose_name
=
_
(
'description'
))
template
=
ForeignKey
(
InstanceTemplate
,
blank
=
True
,
null
=
True
,
template
=
ForeignKey
(
InstanceTemplate
,
blank
=
True
,
null
=
True
,
related_name
=
'instance_set'
,
related_name
=
'instance_set'
,
help_text
=
_
(
'Template the instance derives from.'
),
help_text
=
_
(
"Template the instance derives from."
),
verbose_name
=
_
(
'template'
))
verbose_name
=
_
(
'template'
))
pw
=
CharField
(
help_text
=
_
(
'Original password of the instance.'
),
pw
=
CharField
(
help_text
=
_
(
"Original password of the instance."
),
max_length
=
20
,
verbose_name
=
_
(
'password'
))
max_length
=
20
,
verbose_name
=
_
(
'password'
))
time_of_suspend
=
DateTimeField
(
blank
=
True
,
default
=
None
,
null
=
True
,
time_of_suspend
=
DateTimeField
(
blank
=
True
,
default
=
None
,
null
=
True
,
verbose_name
=
_
(
'time of suspend'
),
verbose_name
=
_
(
'time of suspend'
),
help_text
=
_
(
'Proposed time of automatic '
help_text
=
_
(
"Proposed time of automatic "
'suspension.'
))
"suspension."
))
time_of_delete
=
DateTimeField
(
blank
=
True
,
default
=
None
,
null
=
True
,
time_of_delete
=
DateTimeField
(
blank
=
True
,
default
=
None
,
null
=
True
,
verbose_name
=
_
(
'time of delete'
),
verbose_name
=
_
(
'time of delete'
),
help_text
=
_
(
'Proposed time of automatic '
help_text
=
_
(
"Proposed time of automatic "
'suspension.'
))
"deletion."
))
active_since
=
DateTimeField
(
blank
=
True
,
null
=
True
,
active_since
=
DateTimeField
(
blank
=
True
,
null
=
True
,
help_text
=
_
(
'Time stamp of successful '
help_text
=
_
(
"Time stamp of successful "
'boot report.'
),
"boot report."
),
verbose_name
=
_
(
'active since'
))
verbose_name
=
_
(
'active since'
))
node
=
ForeignKey
(
Node
,
blank
=
True
,
null
=
True
,
node
=
ForeignKey
(
Node
,
blank
=
True
,
null
=
True
,
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'
))
state
=
CharField
(
choices
=
STATES
,
default
=
'NOSTATE'
,
max_length
=
20
)
state
=
CharField
(
choices
=
STATES
,
default
=
'NOSTATE'
,
max_length
=
20
)
disks
=
ManyToManyField
(
Disk
,
related_name
=
'instance_set'
,
disks
=
ManyToManyField
(
Disk
,
related_name
=
'instance_set'
,
help_text
=
_
(
'Set of mounted disks.'
),
help_text
=
_
(
"Set of mounted disks."
),
verbose_name
=
_
(
'disks'
))
verbose_name
=
_
(
'disks'
))
lease
=
ForeignKey
(
Lease
,
help_text
=
_
(
'Preferred expiration periods.'
))
lease
=
ForeignKey
(
Lease
,
help_text
=
_
(
"Preferred expiration periods."
))
access_method
=
CharField
(
max_length
=
10
,
choices
=
ACCESS_METHODS
,
access_method
=
CharField
(
max_length
=
10
,
choices
=
ACCESS_METHODS
,
help_text
=
_
(
'Primary remote access method.'
),
help_text
=
_
(
"Primary remote access method."
),
verbose_name
=
_
(
'access method'
))
verbose_name
=
_
(
'access method'
))
vnc_port
=
IntegerField
(
verbose_name
=
_
(
'vnc_port'
),
vnc_port
=
IntegerField
(
verbose_name
=
_
(
'vnc_port'
),
help_text
=
_
(
'TCP port where VNC console listens.'
))
help_text
=
_
(
"TCP port where VNC console listens."
))
owner
=
ForeignKey
(
User
)
owner
=
ForeignKey
(
User
)
class
Meta
:
class
Meta
:
...
...
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