Commit 6413c2ab by Őry Máté

vm: change display name: Lease object, Node object

fixes #6
parent 131cba0c
......@@ -75,6 +75,9 @@ class Node(TimeStampedModel):
"""
pass # TODO implement check
def __unicode__(self):
return self.name
class NodeActivity(TimeStampedModel):
activity_code = models.CharField(max_length=100)
......@@ -119,6 +122,9 @@ class Lease(models.Model):
def delete_interval(self, value):
self.delete_interval_seconds = value.seconds
def __unicode__(self):
return self.name
class InstanceTemplate(BaseResourceConfigModel, TimeStampedModel):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment