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
6413c2ab
authored
Sep 16, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vm: change display name: Lease object, Node object
fixes #6
parent
131cba0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
circle/vm/models.py
+6
-0
No files found.
circle/vm/models.py
100755 → 100644
View file @
6413c2ab
...
@@ -75,6 +75,9 @@ class Node(TimeStampedModel):
...
@@ -75,6 +75,9 @@ class Node(TimeStampedModel):
"""
"""
pass
# TODO implement check
pass
# TODO implement check
def
__unicode__
(
self
):
return
self
.
name
class
NodeActivity
(
TimeStampedModel
):
class
NodeActivity
(
TimeStampedModel
):
activity_code
=
models
.
CharField
(
max_length
=
100
)
activity_code
=
models
.
CharField
(
max_length
=
100
)
...
@@ -119,6 +122,9 @@ class Lease(models.Model):
...
@@ -119,6 +122,9 @@ class Lease(models.Model):
def
delete_interval
(
self
,
value
):
def
delete_interval
(
self
,
value
):
self
.
delete_interval_seconds
=
value
.
seconds
self
.
delete_interval_seconds
=
value
.
seconds
def
__unicode__
(
self
):
return
self
.
name
class
InstanceTemplate
(
BaseResourceConfigModel
,
TimeStampedModel
):
class
InstanceTemplate
(
BaseResourceConfigModel
,
TimeStampedModel
):
...
...
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